Package org.bouncycastle.openpgp.api
Class OpenPGPMessageInputStream
java.lang.Object
java.io.InputStream
org.bouncycastle.openpgp.api.OpenPGPMessageInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
An
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()
.-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Methods inherited from class java.io.InputStream
available, mark, markSupported, nullInputStream, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Field Details
-
MAX_RECURSION
public static int MAX_RECURSION
-
-
Method Details
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
-
read
- Specified by:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
getResult
-