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 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:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-
read
- Specified by:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
getResult
-