APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.org.apache.xml.internal.security.signature.reference

public Class ReferenceOctetStreamData

extends Object
implements ReferenceData
Class Inheritance
All Implemented Interfaces
com.sun.org.apache.xml.internal.security.signature.reference.ReferenceData
Imports
java.io.InputStream

A representation of a ReferenceData type containing an OctetStream.

Field Summary

Modifier and TypeField and Description
private String
private InputStream
private String

Constructor Summary

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

Creates a new ReferenceOctetStreamData.

public
ReferenceOctetStreamData(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 ReferenceOctetStreamData.

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 ReferenceOctetStreamData.

public InputStream

Returns:

the input stream of this ReferenceOctetStreamData.
getOctetStream
()

Returns the input stream of this ReferenceOctetStreamData.

public String

Returns:

the URI String or null if not applicable
getURI
()

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

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

ReferenceOctetStreamDataback to summary
public ReferenceOctetStreamData(InputStream octetStream)

Creates a new ReferenceOctetStreamData.

Parameters
octetStream:InputStream

the input stream containing the octets

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

Creates a new ReferenceOctetStreamData.

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 ReferenceOctetStreamData.

Returns:String

the MIME type or null if not applicable

getOctetStreamback to summary
public InputStream getOctetStream()

Returns the input stream of this ReferenceOctetStreamData.

Returns:InputStream

the input stream of this ReferenceOctetStreamData.

getURIback to summary
public String getURI()

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

Returns:String

the URI String or null if not applicable