Class StreamGeneratorWrapper


  • public final class StreamGeneratorWrapper
    extends Object
    Literal Data can be encoded in different ways. BINARY encoding leaves the data as is and is generated through the PGPLiteralDataGenerator. However, if the data is encoded in TEXT or UTF8 encoding, we need to use the PGPCanonicalizedDataGenerator instead. This wrapper class acts as a handle for both options and provides a unified interface for them.