cryptix.pgp
Class LiteralData
java.lang.Object
cryptix.pgp.Packet
cryptix.pgp.LiteralData
- public final class LiteralData
- extends Packet
This class represents a literal data Packet.
Copyright © 1995-1997
Systemics Ltd on behalf of the
Cryptix Development Team.
All rights reserved.
$Revision: 1.1.1.1 $
- Since:
- Cryptix 2.2 or earlier
- Author:
- unattributed
Fields inherited from class cryptix.pgp.Packet |
COMMENT, COMPRESSED, CONV_ENCRYPTED, MESSAGE_DIGEST, PLAINTEXT, PUBLIC_KEY, PUBLIC_KEY_ENCRYPTED, SECRET_KEY, SIGNATURE, TRUST, USER_ID |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LiteralData
public LiteralData(byte[] data)
LiteralData
public LiteralData(byte[] data,
java.lang.String filename,
char mode)
LiteralData
public LiteralData(java.io.DataInput in,
int length)
throws java.io.IOException
timestamp
public java.util.Date timestamp()
filename
public java.lang.String filename()
mode
public char mode()
modeIsText
public boolean modeIsText()
modeIsBinary
public boolean modeIsBinary()
getBuffer
public byte[] getBuffer()
data
public byte[] data()
read
public void read(java.io.DataInput in,
int length)
throws java.io.IOException
- Specified by:
read
in class Packet
- Throws:
java.io.IOException
write
public int write(java.io.DataOutput out)
throws java.io.IOException
- Specified by:
write
in class Packet
- Throws:
java.io.IOException
getType
public int getType()
- Specified by:
getType
in class Packet