<PackageReference Include="BouncyCastle.Cryptography" Version="2.7.0" />

Org.BouncyCastle.Bcpg.OpenPgp.PgpLiteralData

public class PgpLiteralData : PgpObject
Class for processing literal data objects.
public const char Binary = 'b'

Format tag for binary literal data.

public const string Console = "_CONSOLE"

The special name indicating a "for your eyes only" packet.

public const char Mime = 'm'

Format tag for MIME message bodies.

public static readonly DateTime Now

The special time for a modification time of "now" or the present time.

public const char Text = 't'

Format tag for textual literal data.

public const char Utf8 = 'u'

Format tag for UTF-8 encoded textual literal data.

public string FileName { get; }

The file name that's associated with the data stream.

public int Format { get; }

The format of the data stream - Binary or Text

public DateTime ModificationTime { get; }

The modification time for the file.

public PgpLiteralData(byte[] encData)

Construct a PGP LiteralData carrier from the passed in byte array.

public PgpLiteralData(Stream inStream)

Construct a PGP LiteralData carrier from the passed in input stream.

public PgpLiteralData(BcpgInputStream bcpgInput)

Construct a PGP LiteralData carrier from the passed in BCPG input stream.

The input stream representing the data stream.

The raw input stream for the data stream.

public byte[] GetRawFileName()