Byte Streams Character Streams June 23, 2005
Posted by javafoo in Java IO, javanotes.add a comment
I can’t believe how people have programmed in Java, myself included, without really understanding how Byte Streams are different from Character Streams. There is an excellent article here
Some pointers:
- If you see
ReaderorWriterthink character stream and if you seeInputStreamandOutputStream think bytes. - Thumb rule: use byte stream for binary data and character stream for everything else.