BufferedInputStream class is used to create such buffered input stream through which a chunk of bytes are read out of a file for later processing.
Constructors of BufferedInputStream class
File file= new File("D:/Textbook.txt"); FileInputStream fis= new FileInputStream(file); BufferedInputStream fis= new BufferedInputStream(fis);
Methods for reading BufferedInputStream class
Methods Description available() This method gives the remaining number of bytes available to read from this input stream. read() This method reads one byte at a time from this input stream. read(byte) This method reads a whole byte array at a time from this input stream. close() This method closes this input stream and also frees any resources connected with this input stream.