Class FastPipedInputStream

  • All Implemented Interfaces:
    Closeable, AutoCloseable

    public class FastPipedInputStream
    extends InputStream
    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 FastPipedOutputStream.
    Author:
    WD
    See Also:
    4404700, FastPipedOutputStream