| Constructor and Description |
|---|
OctetStreamData(java.io.InputStream octetStream)
Creates a new
OctetStreamData. |
OctetStreamData(java.io.InputStream octetStream,
java.lang.String uri,
java.lang.String mimeType)
Creates a new
OctetStreamData. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getMimeType()
Returns the MIME type associated with the data object represented by this
OctetStreamData. |
java.io.InputStream |
getOctetStream()
Returns the input stream of this
OctetStreamData. |
java.lang.String |
getURI()
Returns the URI String identifying the data object represented by this
OctetStreamData. |
public OctetStreamData(java.io.InputStream octetStream)
OctetStreamData.octetStream - the input stream containing the octetsjava.lang.NullPointerException - if octetStream is
nullpublic OctetStreamData(java.io.InputStream octetStream,
java.lang.String uri,
java.lang.String mimeType)
OctetStreamData.octetStream - the input stream containing the octetsuri - the URI String identifying the data object (may be
null)mimeType - the MIME type associated with the data object (may be
null)java.lang.NullPointerException - if octetStream is
nullpublic java.io.InputStream getOctetStream()
OctetStreamData.OctetStreamData.public java.lang.String getURI()
OctetStreamData.null if not applicablepublic java.lang.String getMimeType()
OctetStreamData.null if not applicable