Class InputStreamPump

java.lang.Object
java.io.InputStream
org.apache.jackrabbit.vault.util.InputStreamPump
All Implemented Interfaces:
Closeable, AutoCloseable

public class InputStreamPump extends InputStream
An input stream pump feeds a InputStreamPump.Pump in a dedicated thread with the input read from the given input stream. This is similar to a TeeInputStream but leverages PipedInputStream and PipedOutputStream and can execute additional tasks in the additional thread consuming the PipedInputStream. Only after calling close() the PipedInputStream has been fully consumed (as it waits for the pump's thread to complete).
See Also: