Class BlockingInputStream

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

public class BlockingInputStream extends InputStream
The BlockingInputStream wraps an InputStream adding blocking functionality, e.g. when trying to read, the read operation is blocked till available() returns a value greater than 0. Use a AvailableInputStream to combine the BlockingInputStream with a timeout.