Class cryptix.pgp.PacketByteArray
All Packages Class Hierarchy This Package Previous Next Index
Class cryptix.pgp.PacketByteArray
java.lang.Object
|
+----cryptix.pgp.PacketByteArray
- public class PacketByteArray
- extends Object
A PacketByteArray is a sequence of PGP packets stored as an array of bytes.
This class abstracts that idea, making it possible to specify that a
class which requires packets as input won't accept just any old
byte array, but only byte arrays which contain packets. In can also do
syntax checking, and extract information about the packets therein.
- Author:
- Jill Baker
Copyright © 1995, 1996, 1997
Systemics Ltd
on behalf of the
Cryptix Development Team.
All rights reserved.
-
data
-
-
offsetVector
-
-
PacketByteArray(byte[])
-
-
PacketByteArray(PacketInputStream)
-
-
add(PacketByteArray)
- Concatenate another PacketByteArray to this one
-
getPacketLength(int)
-
-
getPacketOffset(int)
-
-
getPacketType(int)
-
-
numPackets()
-
-
toByteArray()
-
-
toPacketInputStream()
-
-
toString()
-
data
protected byte data[]
offsetVector
protected Vector offsetVector
PacketByteArray
public PacketByteArray(byte buffer[]) throws FormatException
PacketByteArray
public PacketByteArray(PacketInputStream in) throws FormatException, IOException
numPackets
public int numPackets()
getPacketOffset
public int getPacketOffset(int packetNum)
getPacketLength
public int getPacketLength(int packetNum)
getPacketType
public int getPacketType(int packetNum)
toByteArray
public byte[] toByteArray()
toString
public String toString()
- Overrides:
- toString in class Object
toPacketInputStream
public PacketInputStream toPacketInputStream()
add
public void add(PacketByteArray suffix) throws FormatException
- Concatenate another PacketByteArray to this one
All Packages Class Hierarchy This Package Previous Next Index