jump to navigation

Byte Streams Character Streams June 23, 2005

Posted by javafoo in Java IO, javanotes.
trackback

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 Reader or Writer think character stream and if you see InputStream and OutputStream think bytes.
  • Thumb rule: use byte stream for binary data and character stream for everything else.

Comments»

No comments yet — be the first.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: