org.bouncycastle.cms

Class CMSCompressedDataParser

public class CMSCompressedDataParser extends CMSContentInfoParser

Class for reading a CMS Compressed Data stream.
     CMSCompressedDataParser cp = new CMSCompressedDataParser(inputStream);
      
     process(cp.getContent().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.
Constructor Summary
CMSCompressedDataParser(byte[] compressedData)
CMSCompressedDataParser(InputStream compressedData)
Method Summary
CMSTypedStreamgetContent()

Constructor Detail

CMSCompressedDataParser

public CMSCompressedDataParser(byte[] compressedData)

CMSCompressedDataParser

public CMSCompressedDataParser(InputStream compressedData)

Method Detail

getContent

public CMSTypedStream getContent()