Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

reader vs inputstream; writer vs outputstream

Status
Not open for further replies.

vcllvc

Programmer
Jul 12, 2001
136
US
Hi, can someone tell me what should I use between reader, inputstream and writer, outputstream. Each set of them sounds the same feature to me. I'm confused.

Thanks in advance.

Vincent.
 
Well, if they both seem to offer the same features that you need just pick one or even flip a coin.

-pete
I just can't seem to get back my IntelliSense
 
I know Reader/Writer and their subclasses are character streams and there are also byte steams.Does it make no difference when they i/o by character or by byte?If so, why we have both?

 
Input/OutputStreams use byte arrays.

Readers/Writers operate on character arrays. They translate the characters into byte streams. They are used to handle unicode characters, which may be comprised of several bytes each.

There's an article here that explains this better:

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top