PipedOutputStream « API « Java I/O Q&A

Home
Java I/O Q&A
1.API
2.batch File
3.binary File
4.class file
5.CSV file
6.deploy
7.Development
8.directory
9.error
10.Excel File
11.File Attribute
12.jar
13.Log
14.Media File
15.nio
16.Operation
17.PDF file
18.PropertyFile
19.serialize
20.text file
21.Windows
22.XML file
23.Zip
Java I/O Q&A » API » PipedOutputStream 

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 ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.