Class DecryptionOutputStream

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

public class DecryptionOutputStream
extends OutputStream
A DecryptionOutputStream 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 DecryptionOutputStream can be converted back by the according EncryptionInputStream.