Class CloseForResultInputStream
java.lang.Object
java.io.InputStream
org.pgpainless.decryption_verification.CloseForResultInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Direct Known Subclasses:
DecryptionStream
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.InputStream
available, mark, markSupported, nullInputStream, read, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Field Details
-
resultBuilder
-
-
Constructor Details
-
CloseForResultInputStream
-
-
Method Details
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
-
getResult
Return the result of the decryption. The result contains metadata about the decryption, such as signatures, used keys and algorithms, as well as information about the decrypted file/stream. Can only be obtained once the stream got successfully closed (close()
).- Returns:
- metadata
-