PipedInputStream(PipedOutputStream src, int pipeSize) constructor from PipedInputStream has the following syntax.
public PipedInputStream(PipedOutputStream src, int pipeSize) throws IOException
In the following code shows how to use PipedInputStream.PipedInputStream(PipedOutputStream src, int pipeSize) constructor.
/* w w w. ja v a2 s.c om*/ import java.io.PipedInputStream; import java.io.PipedOutputStream; public class Main { public static void main(String[] args) throws Exception { PipedOutputStream out = new PipedOutputStream(); PipedInputStream in = new PipedInputStream(out,200); } }