The PgpLiteralDataGenerator type exposes the following members.

Constructors

  NameDescription
Public methodPgpLiteralDataGenerator()()()()
Public methodPgpLiteralDataGenerator(Boolean)
Generates literal data objects in the old format. This is important if you need compatibility with PGP 2.6.x.

Methods

  NameDescription
Public methodClose
Close the literal data packet - this is equivalent to calling Close() on the stream returned by the Open() method.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodOpen(Stream, Char, FileInfo)

Open a literal data packet for the passed in FileInfo object, returning an output stream for saving the file contents.

The stream created can be closed off by either calling Close() on the stream or Close() on the generator. Closing the returned stream does not close off the Stream parameter outStr.

Public methodOpen(Stream, Char, String, DateTime, array<Byte>[]()[][])

Open a literal data packet, returning a stream to store the data inside the packet, as an indefinite length stream. The stream is written out as a series of partial packets with a chunk size determined by the size of the passed in buffer.

The stream created can be closed off by either calling Close() on the stream or Close() on the generator. Closing the returned stream does not close off the Stream parameter outStr.

Note: if the buffer is not a power of 2 in length only the largest power of 2 bytes worth of the buffer will be used.

Public methodOpen(Stream, Char, String, Int64, DateTime)

Open a literal data packet, returning a stream to store the data inside the packet.

The stream created can be closed off by either calling Close() on the stream or Close() on the generator. Closing the returned stream does not close off the Stream parameter outStr.

Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)

Fields

  NameDescription
Public fieldStatic memberBinary
Public fieldStatic memberConsole
The special name indicating a "for your eyes only" packet.
Public fieldStatic memberText

See Also