public class CMSCompressedDataInputConnector extends java.lang.Object implements CMSInputConnector
CMSCompressedDataInputConnector is used in place of a CMSCompressedDataInputStream
when reading nested CMS objects containing compressed-data structures.
A CMSCompressedDataInputConnector is essentially a input stream filter that unwraps the
CMS compressed-data structure from the data read in. A
CMSCompressedDataInputConnector expects the Content field of the CMS ContentInfo
structure i.e. the underlying input stream must be positioned just after the explicit [0] tag wrapper.
CMSInputConnector,
CMSCompressedDataInputStream| Constructor and Description |
|---|
CMSCompressedDataInputConnector(CMSInputConnector conn)
Creates a
CMSCompressedDataInputConnector. |
CMSCompressedDataInputConnector(java.io.InputStream in)
Creates a
CMSCompressedDataInputConnector. |
| Modifier and Type | Method and Description |
|---|---|
ASN1ObjectID |
getEnclosedContentType()
Returns the content type of the digested data.
|
java.io.InputStream |
getInputStream()
Returns the input stream governing this connector.
|
public CMSCompressedDataInputConnector(java.io.InputStream in)
CMSCompressedDataInputConnector.in - The underlying input stream.public CMSCompressedDataInputConnector(CMSInputConnector conn)
CMSCompressedDataInputConnector.conn - The underlying input connector.public ASN1ObjectID getEnclosedContentType()
throws java.io.IOException
getEnclosedContentType in interface CMSInputConnectorjava.io.IOException - An I/O error occurs or the input encoding is incorrect.public java.io.InputStream getInputStream()
getInputStream in interface CMSInputConnector