public class ReferenceOctetStreamData extends java.lang.Object implements ReferenceData
ReferenceData
type containing an OctetStream.Constructor and Description |
---|
ReferenceOctetStreamData(java.io.InputStream octetStream)
Creates a new
ReferenceOctetStreamData . |
ReferenceOctetStreamData(java.io.InputStream octetStream,
java.lang.String uri,
java.lang.String mimeType)
Creates a new
ReferenceOctetStreamData . |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMimeType()
Returns the MIME type associated with the data object represented by this
ReferenceOctetStreamData . |
java.io.InputStream |
getOctetStream()
Returns the input stream of this
ReferenceOctetStreamData . |
java.lang.String |
getURI()
Returns the URI String identifying the data object represented by this
ReferenceOctetStreamData . |
public ReferenceOctetStreamData(java.io.InputStream octetStream)
ReferenceOctetStreamData
.octetStream
- the input stream containing the octetsjava.lang.NullPointerException
- if octetStream
is
null
public ReferenceOctetStreamData(java.io.InputStream octetStream, java.lang.String uri, java.lang.String mimeType)
ReferenceOctetStreamData
.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
null
public java.io.InputStream getOctetStream()
ReferenceOctetStreamData
.ReferenceOctetStreamData
.public java.lang.String getURI()
ReferenceOctetStreamData
.null
if not applicablepublic java.lang.String getMimeType()
ReferenceOctetStreamData
.null
if not applicable