When do you use the Reader/Writer classes, instead of the InputStream/OutputStream classes?
Location: http://www.jguru.com/faq/view.jsp?EID=143411 Created: Sep 6, 2000 Modified: 2000-09-06 12:38:00.754 Author: John Zukowski (http://www.jguru.com/guru/viewbio.jsp?EID=7) Question originally posed by Kedar Aras (http://www.jguru.com/guru/viewbio.jsp?EID=80325 The InputStream/OutputStream classes are for reading and writing bytes, while the Reader/Writer classes are for reading characters / text. If you need to process text, you use Reader/Writer. If you need to process content at the byte level, either as the raw bytes, or as higher level data like primitives (through DataInput/Output), objects (through ObjectInput/Output), or possibly compressed data (GZIPInput/Output), then you would work with an InputStrem/OutputStream.