Class EncryptionOutputStream

java.lang.Object
java.io.OutputStream
org.refcodes.security.EncryptionOutputStream
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable, org.refcodes.mixin.Disposable

public class EncryptionOutputStream extends OutputStream implements org.refcodes.mixin.Disposable
A EncryptionOutputStream wraps an OutputStream and produces output bytes by applying a Encrypter on each byte to be written before delegating the processed vale to the given OutputStream. The output of the EncryptionOutputStream can be converted back by the according DecryptionInputStream.