FileDocCategorySizeDatePackage
OctetStreamData.javaAPI DocJava SE 6 API2381Tue Jun 10 00:27:06 BST 2008javax.xml.crypto

OctetStreamData

public class OctetStreamData extends Object implements Data
A representation of a Data type containing an octet stream.
since
1.6

Fields Summary
private InputStream
octetStream
private String
uri
private String
mimeType
Constructors Summary
public OctetStreamData(InputStream octetStream)
Creates a new OctetStreamData.

param
octetStream the input stream containing the octets
throws
NullPointerException if octetStream is null

	if (octetStream == null) {
	    throw new NullPointerException("octetStream is null");
	}
	this.octetStream = octetStream;
    
public OctetStreamData(InputStream octetStream, String uri, String mimeType)
Creates a new OctetStreamData.

param
octetStream the input stream containing the octets
param
uri the URI String identifying the data object (may be null)
param
mimeType the MIME type associated with the data object (may be null)
throws
NullPointerException if octetStream is null

	if (octetStream == null) {
	    throw new NullPointerException("octetStream is null");
	}
	this.octetStream = octetStream;
	this.uri = uri;
	this.mimeType = mimeType;
    
Methods Summary
public java.lang.StringgetMimeType()
Returns the MIME type associated with the data object represented by this OctetStreamData.

return
the MIME type or null if not applicable

	return mimeType;
    
public java.io.InputStreamgetOctetStream()
Returns the input stream of this OctetStreamData.

return
the input stream of this OctetStreamData.

	return octetStream;
    
public java.lang.StringgetURI()
Returns the URI String identifying the data object represented by this OctetStreamData.

return
the URI String or null if not applicable

	return uri;