+ 2
It reads data from a memory area known as a buffer. Your program can convert an unbuffered stream into a buffered stream, when the unbuffered stream object is passed to a constructor for a buffered stream class For example when you want to read a file: inputStream = new BufferedReader(new FileReader("filename.txt")); Read a line from the file: String line = inputStream.readLine();
24th Mar 2017, 1:16 AM
orsi