Difference between BufferedReader and BufferedInputStream

谁说胖子不能爱 提交于 2019-11-30 06:13:32
Igor

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

Kumaresh Babu

BufferedInputStream reads the data in the buffer as bytes by using InputStream. BufferedReader reads the text but not as bytes and BufferedReader is efficient reading of characters,arrays and lines.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!