cryptix.pgp
Class CompressedData

java.lang.Object
  extended bycryptix.pgp.Packet
      extended bycryptix.pgp.CompressedData
All Implemented Interfaces:
Algorithm

public final class CompressedData
extends Packet
implements Algorithm

Class representing a compressed 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:
Jill Baker

Field Summary
 
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
 
Fields inherited from interface cryptix.pgp.Algorithm
BINARY, BLOWFISH, GZIP, IDEA, LEGACY, MD5, NONE, PKETEST, RSA, SHA, UTF8, ZIP
 
Constructor Summary
CompressedData(java.io.DataInput in, int length)
           
CompressedData(PacketByteArray data)
           
CompressedData(PacketByteArray data, int algorithm)
           
 
Method Summary
 int getAlgorithm()
           
 PacketByteArray getData()
           
 int getType()
           
 void read(java.io.DataInput in, int length)
           
 void setAlgorithm(int algorithm)
           
 int write(java.io.DataOutput out)
           
 
Methods inherited from class cryptix.pgp.Packet
ctbToLengthSpecifier, ctbToType, getDefaultLengthSpecifier, isCTB, isLegalPacketType, load, load, load, makeCTB, save
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompressedData

public CompressedData(PacketByteArray data)

CompressedData

public CompressedData(PacketByteArray data,
                      int algorithm)
               throws FormatException

CompressedData

public CompressedData(java.io.DataInput in,
                      int length)
               throws java.io.IOException
Method Detail

getAlgorithm

public int getAlgorithm()

setAlgorithm

public void setAlgorithm(int algorithm)
                  throws FormatException
Throws:
FormatException

getData

public PacketByteArray getData()

read

public void read(java.io.DataInput in,
                 int length)
          throws java.io.IOException,
                 FormatException
Specified by:
read in class Packet
Throws:
java.io.IOException
FormatException

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