What is the difference between Java's BufferedReader and InputStreamReader classes?

前端 未结 7 1885
我在风中等你
我在风中等你 2020-12-02 09:19

What is the difference between Java\'s BufferedReader and InputStreamReader classes?

7条回答
  •  [愿得一人]
    2020-12-02 09:53

    BufferedReader reads a couple of characters from the Input Stream and stores them in a buffer.

    InputStreamReader reads only one character from the input stream and the remaining characters still remain in the streams hence There is no buffer in this case.

提交回复
热议问题