0

What is a Buffered reader?

20th Aug 2016, 12:16 PM
Aakash Raut
Aakash Raut - avatar
6 odpowiedzi
+ 3
buffered reader is a library class in java that reads data from input stream in the form of string.
20th Aug 2016, 5:29 PM
Satyam Abhishek Karn
Satyam Abhishek Karn - avatar
+ 1
These answers don't do any explaining add to what the actual difference is. While it is true that it is another way to get input, there's more to it than that. Unfortunately, I'm not sure what the exact difference is. I think the reader pre-buffers the text from a file into a string, but that could be totally wrong. EDIT: From quora.com answering the question of the difference between scanner and BufferedReader: " BufferedReader has significantly larger buffer memory than Scanner. Use BufferedReader if you want to get long strings from a stream, and use Scanner if you want to parse specific type of token from a stream Scanner can use tokenize using custom delimiter and parse the stream into primitive types of data, while BufferedReader can only read and store String. BufferedReader is synchronous while Scanner is not. Use BufferedReader if you're working with multiple threads "
1st Sep 2016, 8:17 AM
Thomas Shrader
Thomas Shrader - avatar
0
another way to read a user's input.
20th Aug 2016, 2:53 PM
Aquarius
Aquarius - avatar
0
another way to take input from user is bufferedreader which is defined in java.io.*
20th Aug 2016, 5:55 PM
RONODEEP BHATTACHARYA
- 1
Hmm
21st Aug 2016, 8:45 AM
Aakash Raut
Aakash Raut - avatar
- 1
java.util.Scanner is an easier way to take an input....in my opinion....no offence....😃😀😅😇🤔
23rd Aug 2016, 1:15 PM
Om Singh
Om Singh - avatar