org.bouncycastle.openpgp

Class PGPLiteralData


public class PGPLiteralData
extends java.lang.Object

class for processing literal data objects.

Field Summary

static char
BINARY
static String
CONSOLE
The special name indicating a "for your eyes only" packet.
static Date
NOW
The special time for a modification time of "now" or the present time.
static char
TEXT

Constructor Summary

PGPLiteralData(BCPGInputStream pIn)

Method Summary

InputStream
getDataStream()
Return the input stream representing the data stream
String
getFileName()
Return the file name that's associated with the data stream.
int
getFormat()
Return the format of the data stream - BINARY or TEXT.
InputStream
getInputStream()
Return the raw input stream for the data stream.
Date
getModificationTime()
Return the modification time for the file.

Field Details

BINARY

public static final char BINARY
Field Value:
'b'

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
Field Value:
't'

Constructor Details

PGPLiteralData

public PGPLiteralData(BCPGInputStream pIn)
            throws IOException

Method Details

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.