Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

When do you use the Reader/Writer classes, instead of the InputStream/OutputStream classes?

0
Posted

When do you use the Reader/Writer classes, instead of the InputStream/OutputStream classes?

0

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.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123