javax.xml.crypto
Class OctetStreamData
- java.lang.Object
-
- javax.xml.crypto.OctetStreamData
-
-
Field Summary
Fields Modifier and Type Field and Description private java.lang.StringmimeTypeprivate java.io.InputStreamoctetStreamprivate java.lang.Stringuri
-
Constructor Summary
Constructors Constructor and Description OctetStreamData(java.io.InputStream octetStream)Creates a newOctetStreamData.OctetStreamData(java.io.InputStream octetStream, java.lang.String uri, java.lang.String mimeType)Creates a newOctetStreamData.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.StringgetMimeType()Returns the MIME type associated with the data object represented by thisOctetStreamData.java.io.InputStreamgetOctetStream()Returns the input stream of thisOctetStreamData.java.lang.StringgetURI()Returns the URI String identifying the data object represented by thisOctetStreamData.
-
-
-
Field Detail
-
octetStream
private java.io.InputStream octetStream
-
uri
private java.lang.String uri
-
mimeType
private java.lang.String mimeType
-
-
Constructor Detail
-
OctetStreamData
public OctetStreamData(java.io.InputStream octetStream)
Creates a newOctetStreamData.- Parameters:
octetStream- the input stream containing the octets- Throws:
java.lang.NullPointerException- ifoctetStreamisnull
-
OctetStreamData
public OctetStreamData(java.io.InputStream octetStream, java.lang.String uri, java.lang.String mimeType)Creates a newOctetStreamData.- Parameters:
octetStream- the input stream containing the octetsuri- the URI String identifying the data object (may benull)mimeType- the MIME type associated with the data object (may benull)- Throws:
java.lang.NullPointerException- ifoctetStreamisnull
-
-
Method Detail
-
getOctetStream
public java.io.InputStream getOctetStream()
Returns the input stream of thisOctetStreamData.- Returns:
- the input stream of this
OctetStreamData.
-
getURI
public java.lang.String getURI()
Returns the URI String identifying the data object represented by thisOctetStreamData.- Returns:
- the URI String or
nullif not applicable
-
getMimeType
public java.lang.String getMimeType()
Returns the MIME type associated with the data object represented by thisOctetStreamData.- Returns:
- the MIME type or
nullif not applicable
-
-