public class OpenPGPMessageInputStream
extends java.io.InputStream
InputStream that processes an OpenPGP message.
Its contents are the plaintext from the messages LiteralData packet.
You can get information about the message (signatures, encryption method, message metadata)
by reading ALL data from the stream, closing it with close() and then retrieving a OpenPGPMessageInputStream.Result object
by calling getResult().| Modifier and Type | Class and Description |
|---|---|
static class |
OpenPGPMessageInputStream.Result |
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_RECURSION |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
OpenPGPMessageInputStream.Result |
getResult() |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.InputStreamjava.io.IOExceptionpublic int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] b)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic OpenPGPMessageInputStream.Result getResult()