org.bouncycastle.bcpg

Class BCPGInputStream

public class BCPGInputStream extends InputStream implements PacketTags

reader for PGP objects
Constructor Summary
BCPGInputStream(InputStream in)
Method Summary
intavailable()
voidclose()
intnextPacketTag()
returns the next packet tag in the stream.
intread()
intread(byte[] buf, int off, int len)
voidreadFully(byte[] buf, int off, int len)
voidreadFully(byte[] buf)
PacketreadPacket()

Constructor Detail

BCPGInputStream

public BCPGInputStream(InputStream in)

Method Detail

available

public int available()

close

public void close()

nextPacketTag

public int nextPacketTag()
returns the next packet tag in the stream.

Returns: the tag number.

Throws: IOException

read

public int read()

read

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

readFully

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

readFully

public void readFully(byte[] buf)

readPacket

public Packet readPacket()