Class SniffInputStream

java.lang.Object
java.io.InputStream
com.aoapps.lang.io.SniffInputStream
All Implemented Interfaces:
Closeable, AutoCloseable

public final class SniffInputStream extends InputStream
As data is read from the input stream it is also written to the given output stream. When the input is closed, the output stream is flushed but not closed.