org.bouncycastle.cms

Class CMSCompressedDataParser

Known Direct Subclasses:
SMIMECompressedParser

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.

Field Summary

Fields inherited from class org.bouncycastle.cms.CMSContentInfoParser

_contentInfo, _data

Constructor Summary

CMSCompressedDataParser(InputStream compressedData)
CMSCompressedDataParser(byte[] compressedData)

Method Summary

CMSTypedStream
getContent()

Methods inherited from class org.bouncycastle.cms.CMSContentInfoParser

close

Constructor Details

CMSCompressedDataParser

public CMSCompressedDataParser(InputStream compressedData)
            throws CMSException

CMSCompressedDataParser

public CMSCompressedDataParser(byte[] compressedData)
            throws CMSException

Method Details

getContent

public CMSTypedStream getContent()
            throws CMSException