org.bouncycastle.openpgp

Class PGPLiteralData

public class PGPLiteralData extends Object

class for processing literal data objects.
Field Summary
static charBINARY
static StringCONSOLE
The special name indicating a "for your eyes only" packet.
static DateNOW
The special time for a modification time of "now" or the present time.
static charTEXT
Constructor Summary
PGPLiteralData(BCPGInputStream pIn)
Method Summary
InputStreamgetDataStream()
Return the input stream representing the data stream
StringgetFileName()
Return the file name that's associated with the data stream.
intgetFormat()
Return the format of the data stream - BINARY or TEXT.
InputStreamgetInputStream()
Return the raw input stream for the data stream.
DategetModificationTime()
Return the modification time for the file.

Field Detail

BINARY

public static final char BINARY

CONSOLE

public static final String CONSOLE
The special name indicating a "for your eyes only" packet.

NOW

public static final Date NOW
The special time for a modification time of "now" or the present time.

TEXT

public static final char TEXT

Constructor Detail

PGPLiteralData

public PGPLiteralData(BCPGInputStream pIn)

Method Detail

getDataStream

public InputStream getDataStream()
Return the input stream representing the data stream

Returns: InputStream

getFileName

public String getFileName()
Return the file name that's associated with the data stream.

Returns: String

getFormat

public int getFormat()
Return the format of the data stream - BINARY or TEXT.

Returns: int

getInputStream

public InputStream getInputStream()
Return the raw input stream for the data stream.

Returns: InputStream

getModificationTime

public Date getModificationTime()
Return the modification time for the file.

Returns: the modification time.