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