public class CMSCompressedData extends Object
CMSCompressedData cd = new CMSCompressedData(inputStream);
process(cd.getContent(new ZlibExpanderProvider()));
| Constructor and Description |
|---|
CMSCompressedData(byte[] compressedData) |
CMSCompressedData(ContentInfo contentInfo) |
CMSCompressedData(InputStream compressedData) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getContent()
Deprecated.
use getContent(InputExpanderProvider)
|
byte[] |
getContent(InputExpanderProvider expanderProvider)
Return the uncompressed content.
|
byte[] |
getContent(int limit)
Deprecated.
use getContent(InputExpanderProvider)
|
ContentInfo |
getContentInfo()
return the ContentInfo
|
ASN1ObjectIdentifier |
getContentType() |
byte[] |
getEncoded()
return the ASN.1 encoded representation of this object.
|
public CMSCompressedData(byte[] compressedData)
throws CMSException
CMSExceptionpublic CMSCompressedData(InputStream compressedData) throws CMSException
CMSExceptionpublic CMSCompressedData(ContentInfo contentInfo) throws CMSException
CMSExceptionpublic byte[] getContent()
throws CMSException
CMSException - if there is an exception uncompressing the data.public byte[] getContent(int limit)
throws CMSException
limit - maximum number of bytes to readCMSException - if there is an exception uncompressing the data.public ASN1ObjectIdentifier getContentType()
public byte[] getContent(InputExpanderProvider expanderProvider) throws CMSException
expanderProvider - a provider of expander algorithm implementations.CMSException - if there is an exception un-compressing the data.public ContentInfo getContentInfo()
public byte[] getEncoded()
throws IOException
IOExceptionCopyright © 2015. All rights reserved.