public class PGPCompressedData extends java.lang.Object implements CompressionAlgorithmTags
BZIP2, UNCOMPRESSED, ZIP, ZLIB
Constructor and Description |
---|
PGPCompressedData(BCPGInputStream pIn)
Construct a compressed data object, reading a single
PacketTags.COMPRESSED_DATA
packet from the stream. |
Modifier and Type | Method and Description |
---|---|
int |
getAlgorithm()
Return the
compression algorithm used for this packet. |
java.io.InputStream |
getDataStream()
Return an input stream that decompresses and returns data in the compressed packet.
|
java.io.InputStream |
getInputStream()
Return the raw input stream contained in the object.
|
public PGPCompressedData(BCPGInputStream pIn) throws java.io.IOException
PacketTags.COMPRESSED_DATA
packet from the stream.pIn
- a PGP input stream, with a compressed data packet as the current packet.java.io.IOException
- if an error occurs reading the packet from the stream.public int getAlgorithm()
compression algorithm
used for this packet.public java.io.InputStream getInputStream()
public java.io.InputStream getDataStream() throws PGPException
PGPException
- if an error occurs constructing the decompression stream.