Java org.bouncycastle.openpgp PGPLiteralDataGenerator fields, constructors, methods, implement or subclass

Example usage for Java org.bouncycastle.openpgp PGPLiteralDataGenerator fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.bouncycastle.openpgp PGPLiteralDataGenerator.

The text is from its open source code.

Field

charBINARY
Format tag for binary literal data
charTEXT
Format tag for textual literal data
charUTF8
Format tag for UTF-8 encoded textual literal data

Constructor

PGPLiteralDataGenerator()
Constructs a generator for literal data objects.
PGPLiteralDataGenerator(boolean oldFormat)
Constructs a generator for literal data objects, specifying to use new or old (PGP 2.6.x compatible) format.

Method

voidclose()
Close the literal data packet - this is equivalent to calling close on the stream returned by the open() method.
OutputStreamopen(OutputStream out, char format, String name, long length, Date modificationTime)
Open a literal data packet, returning a stream to store the data inside the packet.
OutputStreamopen(OutputStream out, char format, String name, Date modificationTime, byte[] buffer)
Open a literal data packet, returning a stream to store the data inside the packet as an indefinite-length stream.
OutputStreamopen(OutputStream out, char format, File file)
Open a literal data packet for the passed in File object, returning an output stream for saving the file contents.