public class CMSCompressedDataParser extends CMSContentInfoParser
CMSCompressedDataParser cp = new CMSCompressedDataParser(inputStream); process(cp.getContent(new ZlibExpanderProvider()).getContentStream());Note: this class does not introduce buffering - if you are processing large files you should create the parser with:
CMSCompressedDataParser ep = new CMSCompressedDataParser(new BufferedInputStream(inputStream, bufSize));where bufSize is a suitably large buffer size.
_contentInfo, _data
Constructor and Description |
---|
CMSCompressedDataParser(byte[] compressedData) |
CMSCompressedDataParser(InputStream compressedData) |
Modifier and Type | Method and Description |
---|---|
CMSTypedStream |
getContent()
Deprecated.
use getContent(InputExpandedProvider)
|
CMSTypedStream |
getContent(InputExpanderProvider expanderProvider)
Return a typed stream which will allow the reading of the compressed content in
expanded form.
|
close
public CMSCompressedDataParser(byte[] compressedData) throws CMSException
CMSException
public CMSCompressedDataParser(InputStream compressedData) throws CMSException
CMSException
public CMSTypedStream getContent() throws CMSException
CMSException
public CMSTypedStream getContent(InputExpanderProvider expanderProvider) throws CMSException
expanderProvider
- a provider of expander algorithm implementations.CMSException
- if there is an exception parsing the CompressedData object.Copyright © 2015. All rights reserved.