org.bouncycastle.openpgp

Class PGPCompressedData

public class PGPCompressedData extends Object implements CompressionAlgorithmTags

Compressed data objects.
Constructor Summary
PGPCompressedData(BCPGInputStream pIn)
Method Summary
intgetAlgorithm()
Return the algorithm used for compression
InputStreamgetDataStream()
Return an uncompressed input stream which allows reading of the compressed data.
InputStreamgetInputStream()
Return the raw input stream contained in the object.

Constructor Detail

PGPCompressedData

public PGPCompressedData(BCPGInputStream pIn)

Method Detail

getAlgorithm

public int getAlgorithm()
Return the algorithm used for compression

Returns: algorithm code

getDataStream

public InputStream getDataStream()
Return an uncompressed input stream which allows reading of the compressed data.

Returns: InputStream

Throws: PGPException

getInputStream

public InputStream getInputStream()
Return the raw input stream contained in the object.

Returns: InputStream