Class PipedOutputStream

java.lang.Object
java.io.OutputStream
java.io.PipedOutputStream
org.apache.olingo.client.core.communication.util.PipedOutputStream
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable

public class PipedOutputStream extends PipedOutputStream
This class is equivalent to java.io.PipedOutputStream. 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.PipedInputStream. Multiple writers can write in this stream concurrently. The block written by a writer is put in completely. Other writers can't come in between.
Author:
WD