|
|||||||||
Home >> All >> cryptix >> openpgp >> [ io overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: ![]() ![]() ![]() |
DETAIL: FIELD | CONSTR | METHOD |
cryptix.openpgp.io
Class PGPPacketDataOutputStream

java.lang.Objectcryptix.openpgp.io.PGPDataOutputStream
cryptix.openpgp.io.PGPLengthDataOutputStream
cryptix.openpgp.io.PGPPacketDataOutputStream
- Direct Known Subclasses:
- PGPHashDataOutputStream
- public class PGPPacketDataOutputStream
- extends PGPLengthDataOutputStream
Outputstream to write PGP formatted (normal) packets
This class does support partial encodings
- Version:
- $Revision: 1.3 $
Field Summary | |
private int |
forcetype
0, 1 or 2 if some old style length should be enforced, -1 if not |
private byte |
packetID
The packetID |
private boolean |
partial
True if partial lengths have been written |
private static long[] |
powtwo
Helper table for writePartialLength |
Fields inherited from class cryptix.openpgp.io.PGPLengthDataOutputStream |
|
Constructor Summary | |
PGPPacketDataOutputStream(java.io.OutputStream out,
byte packetID)
Constructor that takes an outputstream and a packetID |
|
PGPPacketDataOutputStream(java.io.OutputStream out,
byte packetID,
int forcetype)
Constructor that takes an outputstream, a packetID and a forced length type |
Method Summary | |
protected void |
writeLength(java.io.OutputStream out,
long len)
Write a length to the outputstream. |
private void |
writeNewLength(java.io.OutputStream out,
long len)
Write a new 'normal' length |
private void |
writeNewPartialLength(java.io.OutputStream out,
long len)
Write a new partial length |
private void |
writeNewType(java.io.OutputStream out,
byte type)
Write a new type byte |
private void |
writeOldTypeAndLength(java.io.OutputStream out,
byte type,
long len)
Write old-style type and length bytes |
protected void |
writePartialLength(java.io.OutputStream out,
long len)
Write a partial length to the outputstream. |
Methods inherited from class cryptix.openpgp.io.PGPLengthDataOutputStream |
close, setLength, setPartialLength, writeDirect, writeInternal |
Methods inherited from class cryptix.openpgp.io.PGPDataOutputStream |
writeBoolean, writeByte, writeFully, writeFully, writeInt, writeLengthPrependedString, writeLong, writeMPI, writeNullTerminatedString, writeShort, writeString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
packetID
private byte packetID
- The packetID
partial
private boolean partial
- True if partial lengths have been written
forcetype
private int forcetype
- 0, 1 or 2 if some old style length should be enforced, -1 if not
powtwo
private static final long[] powtwo
- Helper table for writePartialLength
Constructor Detail |
PGPPacketDataOutputStream
public PGPPacketDataOutputStream(java.io.OutputStream out, byte packetID, int forcetype)
- Constructor that takes an outputstream, a packetID and a forced length
type
PGPPacketDataOutputStream
public PGPPacketDataOutputStream(java.io.OutputStream out, byte packetID)
- Constructor that takes an outputstream and a packetID
Method Detail |
writePartialLength
protected void writePartialLength(java.io.OutputStream out, long len) throws java.io.IOException
- Write a partial length to the outputstream.
- Specified by:
writePartialLength
in classPGPLengthDataOutputStream
writeLength
protected void writeLength(java.io.OutputStream out, long len) throws java.io.IOException
- Write a length to the outputstream.
- Specified by:
writeLength
in classPGPLengthDataOutputStream
writeOldTypeAndLength
private void writeOldTypeAndLength(java.io.OutputStream out, byte type, long len) throws java.io.IOException
- Write old-style type and length bytes
writeNewType
private void writeNewType(java.io.OutputStream out, byte type) throws java.io.IOException
- Write a new type byte
writeNewLength
private void writeNewLength(java.io.OutputStream out, long len) throws java.io.IOException
- Write a new 'normal' length
writeNewPartialLength
private void writeNewPartialLength(java.io.OutputStream out, long len) throws java.io.IOException
- Write a new partial length
|
|||||||||
Home >> All >> cryptix >> openpgp >> [ io overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: ![]() ![]() ![]() |
DETAIL: FIELD | CONSTR | METHOD |