public class

CMSCompressedDataParser

extends CMSContentInfoParser
java.lang.Object
   ↳ org.bouncycastle.cms.CMSContentInfoParser
     ↳ org.bouncycastle.cms.CMSCompressedDataParser
Known Direct Subclasses

Class Overview

Class for reading a CMS Compressed Data stream.

     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.

Summary

[Expand]
Inherited Fields
From class org.bouncycastle.cms.CMSContentInfoParser
Public Constructors
CMSCompressedDataParser(byte[] compressedData)
CMSCompressedDataParser(InputStream compressedData)
Public Methods
CMSTypedStream getContent(InputExpanderProvider expanderProvider)
Return a typed stream which will allow the reading of the compressed content in expanded form.
CMSTypedStream getContent()
This method is deprecated. use getContent(InputExpandedProvider)
[Expand]
Inherited Methods
From class org.bouncycastle.cms.CMSContentInfoParser
From class java.lang.Object

Public Constructors

public CMSCompressedDataParser (byte[] compressedData)

Throws
CMSException

public CMSCompressedDataParser (InputStream compressedData)

Throws
CMSException

Public Methods

public CMSTypedStream getContent (InputExpanderProvider expanderProvider)

Return a typed stream which will allow the reading of the compressed content in expanded form.

Parameters
expanderProvider a provider of expander algorithm implementations.
Returns
  • a type stream which will yield the un-compressed content.
Throws
CMSException if there is an exception parsing the CompressedData object.

public CMSTypedStream getContent ()

This method is deprecated.
use getContent(InputExpandedProvider)

Throws
CMSException