Class InverseInputStream

java.lang.Object
java.io.InputStream
org.refcodes.io.InverseInputStream
All Implemented Interfaces:
Closeable, AutoCloseable

public class InverseInputStream extends InputStream
A InverseInputStream wraps an InputStream and consumes input bytes by applying a InverseFunction on each byte read from the provided InputStream before passing back the processed byte to the caller. The input of the InverseInputStream can be converted back by the according BijectiveOutputStream.