Class BijectiveOutputStream

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

public class BijectiveOutputStream extends OutputStream
A BijectiveOutputStream wraps an OutputStream and produces output bytes by applying a BijectiveFunction on each byte to be written before delegating the processed vale to the given OutputStream. The output of the BijectiveOutputStream can be converted back by the according InverseInputStream.