It adds functionality to another input stream-namely, the ability to buffer the input and to support the mark and reset methods.
When the BufferedInputStream is created, an internal buffer array is created.
Buffered Output Stream
This class implements a buffered output stream.
By setting up such an output stream, an application can write bytes to the underlying output stream without necessarily causing a call to the underlying system for each byte written.