public class BCPGInputStream extends InputStream implements 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, SYM_ENC_INTEGRITY_PRO, SYMMETRIC_KEY_ENC, SYMMETRIC_KEY_ENC_SESSION, TRUST, USER_ATTRIBUTE, USER_ID| Constructor and Description |
|---|
BCPGInputStream(InputStream in) |
| Modifier and Type | Method and Description |
|---|---|
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() |
mark, markSupported, read, reset, skippublic BCPGInputStream(InputStream in)
public int available()
throws IOException
available in class InputStreamIOExceptionpublic int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] buf,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionpublic void readFully(byte[] buf,
int off,
int len)
throws IOException
IOExceptionpublic void readFully(byte[] buf)
throws IOException
IOExceptionpublic int nextPacketTag()
throws IOException
IOExceptionpublic Packet readPacket() throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOException