In this section we will discuss the I/O Buffered Streams.
In Java programming when we are doing an input and output operation then we are trying to interact our Java program to read from or write data to the memory. In the perspective of Java we can do this in two ways :
An unbuffered stream can be changed to the buffered stream by wrapping the buffered stream classes. There are four buffered stream classes from which two are the buffered byte stream classes and the other twos are the buffered character streams classes these are as follows :
Buffered Byte Streams classes
| Classes | Description |
| BufferedInputStream | This class makes input stream able for buffering the input. |
| BufferedOutputStream | This class provides the facility to write output from the buffer. |
Methods of BufferedInputStream
Methods of BufferedOutputStream
Buffered Character Stream Classes
| Classes | Description |
| BufferedReader | This class facilitate to read texts from the character-input stream |
| BufferedWriter | This class facilitate to write character-output stream using buffer. |
Methodd of BufferedReader
Methods of BufferedWriter
|
Recommend the tutorial |
Ask Questions? Discuss: Java I/O Buffered Streams
Post your Comment