public class PGPLiteralData
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static char |
BINARY
Format tag for binary literal data
|
static java.lang.String |
CONSOLE
The special name indicating a "for your eyes only" packet.
|
static char |
MIME
Format tag for MIME message bodies
|
static java.util.Date |
NOW
The special time for a modification time of "now" or
the present time.
|
static char |
TEXT
Format tag for textual literal data
|
static char |
UTF8
Format tag for UTF-8 encoded textual literal data
|
Constructor and Description |
---|
PGPLiteralData(BCPGInputStream pIn)
Construct a PGP LiteralData carrier from the passed in BCPG input stream.
|
PGPLiteralData(byte[] encData)
Construct a PGP LiteralData carrier from the passed in byte array.
|
PGPLiteralData(java.io.InputStream inStream)
Construct a PGP LiteralData carrier from the passed in input stream.
|
Modifier and Type | Method and Description |
---|---|
java.io.InputStream |
getDataStream()
Return the input stream representing the data stream.
|
java.lang.String |
getFileName()
Return the file name associated with the data packet.
|
int |
getFormat()
Return the format of the data packet.
|
java.io.InputStream |
getInputStream()
Return the raw input stream for the data packet.
|
java.util.Date |
getModificationTime()
Return the modification time for the file (at second level precision).
|
byte[] |
getRawFileName()
Return the file name as an uninterpreted (UTF-8 encoded) byte array.
|
public static final char BINARY
public static final char TEXT
public static final char UTF8
public static final char MIME
public static final java.lang.String CONSOLE
public static final java.util.Date NOW
public PGPLiteralData(byte[] encData) throws java.io.IOException
encData
- an encoding of PGP literal data.java.io.IOException
- if an error occurs reading from the PGP input.public PGPLiteralData(java.io.InputStream inStream) throws java.io.IOException
inStream
- an input stream containing an encoding of PGP literal data.java.io.IOException
- if an error occurs reading from the PGP input.public PGPLiteralData(BCPGInputStream pIn) throws java.io.IOException
pIn
- a BCPG input stream containing an encoded PGP literal data structure.java.io.IOException
- if an error occurs reading from the PGP input.public int getFormat()
public java.lang.String getFileName()
public byte[] getRawFileName()
public java.util.Date getModificationTime()
public java.io.InputStream getInputStream()
public java.io.InputStream getDataStream()
getInputStream()
.