public PipedInputStream (PipedOutputStream src, int pipeSize) throws IOException

Creates a PipedInputStream so that it is connected to the piped output stream src and uses the specified pipe size for the pipe's buffer. Data bytes written to src will then be available as input from this stream.

Parameters:
src    the stream to connect to.
pipeSize    the size of the pipe's buffer.

Exceptions:
IOException    if an I/O error occurs.
IllegalArgumentException    if pipeSize <= 0.

Since:  1.6