public class AttachmentDataSource extends Object implements FileDataSource
FileDataSource.| Constructor and Description |
|---|
AttachmentDataSource(RequestParameter fileRequestParameter)
Constructor of
AttachmentDataSource. |
| Modifier and Type | Method and Description |
|---|---|
String |
getContentType() |
InputStream |
getInputStream() |
String |
getName() |
OutputStream |
getOutputStream() |
long |
getSize()
Returns the size of the file in bytes.
|
String |
getType()
Returns the MIME type of the content.
|
String |
getTypeFromFileName()
Returns the MIME type extension from file name.
|
public AttachmentDataSource(RequestParameter fileRequestParameter)
AttachmentDataSource.fileRequestParameter - The file request parameterpublic String getContentType()
getContentType in interface DataSourcepublic String getType()
FileDataSourcegetType in interface FileDataSourcepublic String getTypeFromFileName()
FileDataSourcegetTypeFromFileName in interface FileDataSourcepublic long getSize()
FileDataSourcegetSize in interface FileDataSourcepublic InputStream getInputStream() throws IOException
getInputStream in interface DataSourceIOException - if I/O error occurs.public String getName()
getName in interface DataSourcepublic OutputStream getOutputStream() throws IOException
getOutputStream in interface DataSourceIOException - if I/O error occurs.Copyright © 2010 - 2020 Adobe. All Rights Reserved