public class CMSCompressedDataInputStream extends CMSInputStream
CMSCompressedDataInputStream is used to read compressed-data CMS objects.
A CMSCompressedDataInputStream is essentially a input stream filter that unwraps the CMS compressed-data structure from the data read in.
You will be able to read a detached digested-data object using the CMSCompressedDataInputStream class but you will not be able to verify the digest.
IMPORTANT: This class processes large CMS compressed-data Objects more efficiently (Java VM memory usage) than the CMSCompressedDataContentInfo class.
| Constructor and Description |
|---|
CMSCompressedDataInputStream(CMSInputConnector conn)
Creates a
CMSCompressedDataInputStream. |
CMSCompressedDataInputStream(java.io.InputStream in)
Creates a
CMSCompressedDataInputStream. |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
oracle.security.crypto.core.AlgorithmIdentifier |
getCompressionAlgID()
Returns the message compressed algorithm.
|
oracle.security.crypto.asn1.ASN1ObjectID |
getEnclosedContentType()
Returns the content type of the digested content.
|
oracle.security.crypto.asn1.ASN1Integer |
getVersion()
Deprecated.
As of Phaos CMS 2.0.1, replaced by
getVersionNumber() |
java.math.BigInteger |
getVersionNumber()
Returns the version number of this CMS Object.
|
void |
mark(int readlimit)
Not supported.
|
boolean |
markSupported()
Always returns
false</false>. |
int |
read() |
int |
read(byte[] buffer, int offset, int len) |
void |
reset()
Not supported.
|
long |
skip(long n) |
void |
terminate()
Finish reading the
digested-data structure. |
public CMSCompressedDataInputStream(java.io.InputStream in)
CMSCompressedDataInputStream.in - The underlying input stream.public CMSCompressedDataInputStream(CMSInputConnector conn)
CMSCompressedDataInputStream.conn - The underlying input connector.public void terminate()
throws java.io.IOException
digested-data structure.
Invoke this method only after all the underlying content has been read.
terminate in class CMSInputStreamjava.io.IOException - An I/O error occurred or some of the underlying content is still present in the input stream.public java.math.BigInteger getVersionNumber()
throws java.io.IOException
java.io.IOException - An I/O error occurred or the input is incorrectly encoded.public oracle.security.crypto.asn1.ASN1Integer getVersion()
throws java.io.IOException
getVersionNumber()java.io.IOException - An I/O error occurred or the input is incorrectly encoded.public oracle.security.crypto.core.AlgorithmIdentifier getCompressionAlgID()
throws java.io.IOException
java.io.IOException - An I/O error occurred or the input is incorrectly encoded.public oracle.security.crypto.asn1.ASN1ObjectID getEnclosedContentType()
throws java.io.IOException
getEnclosedContentType in class CMSInputStreamjava.io.IOException - An I/O error occurred or no input has been read.public int read()
throws java.io.IOException
read in class java.io.FilterInputStreamjava.io.IOExceptionpublic int read(byte[] buffer,
int offset,
int len)
throws java.io.IOException
read in class java.io.FilterInputStreamjava.io.IOExceptionpublic int available()
throws java.io.IOException
available in class java.io.FilterInputStreamjava.io.IOExceptionpublic long skip(long n)
throws java.io.IOException
skip in class java.io.FilterInputStreamjava.io.IOExceptionpublic boolean markSupported()
false</false>.Overrides:markSupported in class java.io.FilterInputStreampublic void mark(int readlimit)
mark in class java.io.FilterInputStreampublic void reset()
throws java.io.IOException
reset in class java.io.FilterInputStreamjava.io.IOException - always(not supported)