+ 1
What is the use of buffered reader in Java?
2 Answers
+ 1
Just like the FileReader the BufferedReader is used to read text from a character input stream, but it buffers its characters to allow efficient reading. You can wrap a BufferedReader around any Reader, for example...
BufferedReader in = new BufferedReader(new FileReader("filename"));
0
if your stream has a lot of data at irregular intervals, or if the non-buffered input is not processing at the time