cryptix.pgp
Class CompressedData

java.lang.Object
  |
  +--cryptix.pgp.Packet
        |
        +--cryptix.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

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

getData

public PacketByteArray getData()

read

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

write

public int write(java.io.DataOutput out)
          throws java.io.IOException
Overrides:
write in class Packet

getType

public int getType()
Overrides:
getType in class Packet