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.DataSource
public java.lang.String getType()
FileDataSource
getType
in interface FileDataSource
public java.lang.String getTypeFromFileName()
FileDataSource
getTypeFromFileName
in interface FileDataSource
public long getSize()
FileDataSource
getSize
in interface FileDataSource
public java.io.InputStream getInputStream() throws java.io.IOException
getInputStream
in interface javax.activation.DataSource
java.io.IOException
- if I/O error occurs.public java.lang.String getName()
getName
in interface javax.activation.DataSource
public java.io.OutputStream getOutputStream() throws java.io.IOException
getOutputStream
in interface javax.activation.DataSource
java.io.IOException
- if I/O error occurs."Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"