Class PipedInputStream

java.lang.Object
java.io.InputStream
java.io.PipedInputStream
org.apache.olingo.client.core.communication.util.PipedInputStream
All Implemented Interfaces:
Closeable, AutoCloseable

public class PipedInputStream extends PipedInputStream
This class is equivalent to java.io.PipedInputStream. In the interface it only adds a constructor which allows for specifying the buffer size. Its implementation, however, is much simpler and a lot more efficient than its equivalent. It doesn't rely on polling. Instead it uses proper synchronization with its counterpart be.re.io.PipedOutputStream. Multiple readers can read from this stream concurrently. The block asked for by a reader is delivered completely, or until the end of the stream if less is available. Other readers can't come in between.
Author:
WD