First, you create an InputStreamReader so you will be able to read characters from a stream of information. Streams are just series of bytes that you can interpret in any way you want. Readers interpret them as readable characters.
The BufferedReader is used to increase performance of the InputStreamReader. If you don't use a BufferedReader, you will only read a couple of bytes from the stream every time you read a portion of text. A BufferedReader however, will read much more bytes in one go, and store them in memory (also known as "data buffering").
Fewer big reads to file systems are much faster than lots of small reads. Using a BufferedReader makes sure that you don't have to worry about this.
The mind is a strange and wonderful thing. I'm not sure that it will ever be able to figure itself out, everything else, maybe. From the atom to the universe, everything, except itself.
Santosh Kumar Nayak
Joined: Aug 02, 2011
Thanks for the descriptive response.
anyways can you tell me:-
How to figure out as when to use Stream classes or use Reader classes for taking input from Input Devices ?