public class ReferenceOctetStreamData extends Object implements ReferenceData
ReferenceData type containing an OctetStream.| Constructor and Description |
|---|
ReferenceOctetStreamData(InputStream octetStream)
Creates a new
ReferenceOctetStreamData. |
ReferenceOctetStreamData(InputStream octetStream,
String uri,
String mimeType)
Creates a new
ReferenceOctetStreamData. |
| Modifier and Type | Method and Description |
|---|---|
String |
getMimeType()
Returns the MIME type associated with the data object represented by this
ReferenceOctetStreamData. |
InputStream |
getOctetStream()
Returns the input stream of this
ReferenceOctetStreamData. |
String |
getURI()
Returns the URI String identifying the data object represented by this
ReferenceOctetStreamData. |
public ReferenceOctetStreamData(InputStream octetStream)
ReferenceOctetStreamData.octetStream - the input stream containing the octetsNullPointerException - if octetStream is
nullpublic ReferenceOctetStreamData(InputStream octetStream, String uri, 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)NullPointerException - if octetStream is
nullpublic InputStream getOctetStream()
ReferenceOctetStreamData.ReferenceOctetStreamData.public String getURI()
ReferenceOctetStreamData.null if not applicablepublic String getMimeType()
ReferenceOctetStreamData.null if not applicableCopyright © 2000–2020 The Apache Software Foundation. All rights reserved.