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.
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?
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:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.