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