org.bouncycastle.bcpg

Class BCPGInputStream

Implemented Interfaces:
PacketTags

public class BCPGInputStream
extends InputStream
implements PacketTags

reader for PGP objects

Fields inherited from interface org.bouncycastle.bcpg.PacketTags

COMPRESSED_DATA, EXPERIMENTAL_1, EXPERIMENTAL_2, EXPERIMENTAL_3, EXPERIMENTAL_4, LITERAL_DATA, MARKER, MOD_DETECTION_CODE, ONE_PASS_SIGNATURE, PUBLIC_KEY, PUBLIC_KEY_ENC_SESSION, PUBLIC_SUBKEY, RESERVED, SECRET_KEY, SECRET_SUBKEY, SIGNATURE, SYMMETRIC_KEY_ENC, SYMMETRIC_KEY_ENC_SESSION, SYM_ENC_INTEGRITY_PRO, TRUST, USER_ATTRIBUTE, USER_ID

Constructor Summary

BCPGInputStream(InputStream in)

Method Summary

int
available()
void
close()
int
nextPacketTag()
returns the next packet tag in the stream.
int
read()
int
read(byte[] buf, int off, int len)
void
readFully(byte[] buf)
void
readFully(byte[] buf, int off, int len)
Packet
readPacket()

Constructor Details

BCPGInputStream

public BCPGInputStream(InputStream in)

Method Details

available

public int available()
            throws IOException

close

public void close()
            throws IOException

nextPacketTag

public int nextPacketTag()
            throws IOException
returns the next packet tag in the stream.
Returns:
the tag number.

read

public int read()
            throws IOException

read

public int read(byte[] buf,
                int off,
                int len)
            throws IOException

readFully

public void readFully(byte[] buf)
            throws IOException

readFully

public void readFully(byte[] buf,
                      int off,
                      int len)
            throws IOException

readPacket

public Packet readPacket()
            throws IOException