Class InputStreamTap

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

public class InputStreamTap extends InputStream implements Flushable
The InputStreamTap decorates an InputStreamTap by tapping (sniffing data from) an InputStream and besides returning the read data writes it to the provided OutputStream. In conjunction with the HexOutputStream the data read from the provided InputStream via the InputStreamTap may be printed out as Hex codes for debugging purposes.