Class EncryptionStream
java.lang.Object
java.io.OutputStream
org.pgpainless.encryption_signing.EncryptionStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
OutputStream that produces an OpenPGP message. The message can be encrypted, signed, or both,
depending on its configuration.
This class is based upon Jens Neuhalfen's Bouncy-GPG PGPEncryptingStream.
- See Also:
-
Method Summary
Methods inherited from class java.io.OutputStream
nullOutputStream
-
Method Details
-
prepareSigningStream
public void prepareSigningStream() -
prepareInputEncoding
public void prepareInputEncoding() -
write
- Specified by:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
flush
- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classOutputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOutputStream
- Throws:
IOException
-
getResult
-
isClosed
public boolean isClosed()
-