Skip navigation links
Bouncy Castle Cryptography 1.68
org.bouncycastle.openpgp

Class PGPCompressedDataGenerator

A PGPCompressedDataGenerator is usually used to wrap the OutputStream obtained from a PGPEncryptedDataGenerator (i.e. to compress data prior to encrypting it).

Raw data is not typically written directly to the OutputStream obtained from a PGPCompressedDataGenerator. The OutputStream is usually wrapped by a PGPLiteralDataGenerator, which encodes the raw data prior to compression.

Once data for compression has been written to the constructed OutputStream, writing of the object stream is completed by closing the OutputStream obtained from the #open() method, or equivalently invoking close() on this generator.

Skip navigation links
Bouncy Castle Cryptography 1.68