APIdia Launch Partner
Top Description Fields Constructors Methods
javax.xml.crypto

public Class OctetStreamData

extends Object
implements Data
Class Inheritance
All Implemented Interfaces
javax.xml.crypto.Data
Known Direct Subclasses
org.jcp.xml.dsig.internal.dom.ApacheOctetStreamData
Imports
java.io.InputStream

A representation of a Data type containing an octet stream.
Since
1.6

Field Summary

Modifier and TypeField and Description
private String
private InputStream
private String

Constructor Summary

AccessConstructor and Description
public
OctetStreamData(InputStream
the input stream containing the octets
octetStream
)

Creates a new OctetStreamData.

public
OctetStreamData(InputStream
the input stream containing the octets
octetStream
,
String
the URI String identifying the data object (may be null)
uri
,
String
the MIME type associated with the data object (may be null)
mimeType
)

Creates a new OctetStreamData.

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the MIME type or null if not applicable
getMimeType
()

Returns the MIME type associated with the data object represented by this OctetStreamData.

public InputStream

Returns:

the input stream of this OctetStreamData.
getOctetStream
()

Returns the input stream of this OctetStreamData.

public String

Returns:

the URI String or null if not applicable
getURI
()

Returns the URI String identifying the data object represented by this OctetStreamData.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

mimeTypeback to summary
private String mimeType
octetStreamback to summary
private InputStream octetStream
uriback to summary
private String uri

Constructor Detail

OctetStreamDataback to summary
public OctetStreamData(InputStream octetStream)

Creates a new OctetStreamData.

Parameters
octetStream:InputStream

the input stream containing the octets

Exceptions
NullPointerException:
if octetStream is null
OctetStreamDataback to summary
public OctetStreamData(InputStream octetStream, String uri, String mimeType)

Creates a new OctetStreamData.

Parameters
octetStream:InputStream

the input stream containing the octets

uri:String

the URI String identifying the data object (may be null)

mimeType:String

the MIME type associated with the data object (may be null)

Exceptions
NullPointerException:
if octetStream is null

Method Detail

getMimeTypeback to summary
public String getMimeType()

Returns the MIME type associated with the data object represented by this OctetStreamData.

Returns:String

the MIME type or null if not applicable

getOctetStreamback to summary
public InputStream getOctetStream()

Returns the input stream of this OctetStreamData.

Returns:InputStream

the input stream of this OctetStreamData.

getURIback to summary
public String getURI()

Returns the URI String identifying the data object represented by this OctetStreamData.

Returns:String

the URI String or null if not applicable