PipedOutputStream « API « Java I/O Q&A





1. Use cases of PipedInputStream and PipedOutputStream    stackoverflow.com

What are use cases of Piped streams? Why just not read data into buffer and then write them out?

2. Regarding PipedOutputStream and Garbage Collector    coderanch.com

Hi, I have a huge xml file, from which i read element and write to files. (in read and write two paraller threads.) I am writing data to PipedOutputStream in read thread and then read from PipedOutputStream in write thread and write it to file. There are around 10 laks complex elements and after writing around 5 laks elements it stops ...

3. Question about PipedOUtputStream / PipedInputStream    coderanch.com

Hello, Using pipedoutputstream and pipedinputstream is the best way of converting outputstream into inputstream, but I have got question about a pice of code, does it make sense? public inputstream getIS() { PipedInputStream in = new PipedInputStream(); PipedOUtputStream out = new PipedOutputStream(in); new Thread( new Runnable(){ public void run(){ class1.putDataOnOutputStream(out); } } ).start(); return in; } I am not sure if ...