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.
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public CMSTypedStream | Returns: a type stream which will yield the un-compressed content.a provider of expander algorithm implementations. expanderProvider)Return a typed stream which will allow the reading of the compressed content in expanded form. |
| CMSCompressedDataParser | back to summary |
|---|---|
| public CMSCompressedDataParser(byte[] compressedData) throws CMSException | |
| CMSCompressedDataParser | back to summary |
|---|---|
| public CMSCompressedDataParser(InputStream compressedData) throws CMSException | |
| getContent | back to summary |
|---|---|
| public CMSTypedStream getContent(InputExpanderProvider expanderProvider) throws CMSException Return a typed stream which will allow the reading of the compressed content in expanded form.
| |