Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

cryptix.openpgp.packet
Class PGPDummyPacket  view PGPDummyPacket download PGPDummyPacket.java

java.lang.Object
  extended bycryptix.openpgp.packet.PGPPacket
      extended bycryptix.openpgp.packet.PGPDummyPacket
Direct Known Subclasses:
PGPMarkerPacket, PGPModificationDetectionCodePacket, PGPTrustPacket, PGPUnknownPacket

public abstract class PGPDummyPacket
extends PGPPacket

Placeholder for packets we don't know how to parse otherwise.

Version:
$Revision: 1.2 $

Field Summary
private  byte[] payload
           
 
Fields inherited from class cryptix.openpgp.packet.PGPPacket
 
Constructor Summary
PGPDummyPacket()
          Empty constructor.
 
Method Summary
 void decodeBody(cryptix.openpgp.io.PGPPacketDataInputStream in, cryptix.openpgp.algorithm.PGPAlgorithmFactory factory)
          Read the packet body.
 void encodeBody(cryptix.openpgp.io.PGPPacketDataOutputStream out)
          Encode the packet body.
 boolean equals(java.lang.Object ssp)
          Compare this packet to another one.
 byte[] getPayload()
          Get the binary payload of this packet.
 void setPayload(byte[] payload)
          Set the binary payload of this packet.
 
Methods inherited from class cryptix.openpgp.packet.PGPPacket
encode, getForceLengthType, getPacketID, hashCode, isLazy, setPacketID
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

payload

private byte[] payload
Constructor Detail

PGPDummyPacket

public PGPDummyPacket()
Empty constructor.

Remember to use setPacketID to set the packet ID.

Method Detail

setPayload

public void setPayload(byte[] payload)
Set the binary payload of this packet.


getPayload

public byte[] getPayload()
Get the binary payload of this packet.


equals

public boolean equals(java.lang.Object ssp)
Compare this packet to another one.

Specified by:
equals in class PGPPacket

decodeBody

public void decodeBody(cryptix.openpgp.io.PGPPacketDataInputStream in,
                       cryptix.openpgp.algorithm.PGPAlgorithmFactory factory)
                throws java.io.IOException,
                       cryptix.openpgp.PGPFatalDataFormatException,
                       cryptix.openpgp.PGPDataFormatException
Read the packet body.

Specified by:
decodeBody in class PGPPacket

encodeBody

public void encodeBody(cryptix.openpgp.io.PGPPacketDataOutputStream out)
                throws java.io.IOException
Encode the packet body.

Specified by:
encodeBody in class PGPPacket