org.bouncycastle.openpgp

Class PGPCompressedData

Implemented Interfaces:
CompressionAlgorithmTags

public class PGPCompressedData
extends java.lang.Object
implements CompressionAlgorithmTags

Compressed data objects.

Fields inherited from interface org.bouncycastle.bcpg.CompressionAlgorithmTags

UNCOMPRESSED, ZIP, ZLIB

Constructor Summary

PGPCompressedData(BCPGInputStream pIn)

Method Summary

int
getAlgorithm()
Return the algorithm used for compression
InputStream
getDataStream()
Return an uncompressed input stream which allows reading of the compressed data.
InputStream
getInputStream()
Return the raw input stream contained in the object.

Constructor Details

PGPCompressedData

public PGPCompressedData(BCPGInputStream pIn)
            throws IOException

Method Details

getAlgorithm

public int getAlgorithm()
Return the algorithm used for compression
Returns:
algorithm code

getDataStream

public InputStream getDataStream()
            throws PGPException
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