public class PartStreamData extends java.lang.Object implements MimeStreamData
Constructor and Description |
---|
PartStreamData(AppContext conn,
Part part) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getContentType()
get the Mime type associated with the Data
|
java.io.InputStream |
getInputStream()
get an InputStream to read the state of the obect
|
long |
getLength()
get the size of data held in the object
|
java.lang.String |
getName()
Get the original filename associated with the data.
|
java.io.OutputStream |
getOutputStream()
Get an OutputStream used to modify the state of the object
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
append, read, write
public PartStreamData(AppContext conn, Part part)
conn
- part
- public long getLength()
StreamData
getLength
in interface StreamData
public java.io.InputStream getInputStream()
StreamData
getInputStream
in interface StreamData
public java.io.OutputStream getOutputStream()
StreamData
getOutputStream
in interface StreamData
public java.lang.String getContentType()
MimeStreamData
getContentType
in interface MimeStreamData
public java.lang.String getName()
MimeStreamData
getName
in interface MimeStreamData