+ 1

What is the use of buffered reader in Java?

27th Jul 2019, 6:01 PM
Captain America
Captain America - avatar
3 odpowiedzi
+ 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"));
27th Jul 2019, 8:10 PM
Elmer Martens
Elmer Martens - avatar
0
if your stream has a lot of data at irregular intervals, or if the non-buffered input is not processing at the time
28th Jul 2019, 6:14 AM
zemiak