|
Bouncy Castle Cryptography 1.64 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.bouncycastle.openpgp.PGPCompressedData
A PGP compressed data object.
Fields inherited from interface org.bouncycastle.bcpg.CompressionAlgorithmTags |
BZIP2,
UNCOMPRESSED,
ZIP,
ZLIB |
Constructor Summary | |
PGPCompressedData(BCPGInputStream pIn)
Construct a compressed data object, reading a single PacketTags.COMPRESSED_DATA
packet from the stream. |
Method Summary | |
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. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
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.Method Detail |
public int getAlgorithm()
compression algorithm
used for this packet.public java.io.InputStream getInputStream()
Note that this stream is shared with the decompression stream, so consuming the returned stream will affect decompression.
public java.io.InputStream getDataStream() throws PGPException
|
Bouncy Castle Cryptography 1.64 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |