Difference between BufferedReader and BufferedInputStream

user1357722 picture user1357722 · May 3, 2012 · Viewed 19.4k times · Source

What are the differences between BufferedReader , BufferedInputStream and Scanner in java? BufferedReader reads the text and BufferedInputStream reads byte. Is there any difference other than this?

Answer

Igor Deruga picture Igor Deruga · May 3, 2012

I guess, the difference is the same as between reader and inputstream: one is character-based, another is byte-based. For example, reader normally supports encoding...

Edit: Check this question: The difference between InputStream and InputStreamReader when reading multi-byte characters