BufferedInputStream : BufferedInputStream « File « Java Tutorial

For faster reading you should use BufferedInputStream to wrap any InputStream. BufferedInputStream has two constructors that accept an InputStream:

public BufferedInputStream(InputStream in)
public BufferedInput Stream (Input Stream in, int bufferSize)

For example, the following code wraps a FileInputStream with a BufferedInputStream.

FileInputStream fis = new FileInputStream(aFile);
BufferedInputStream bis = new BufferedInputStream (fis);

Then, instead of calling the methods on fis, work with the BufferedInputStream bis.

11.9.2.Buffered Stream Copier
11.9.3.Read from file with BufferedInputStream
11.9.4.Read File in String Using Java BufferedInputStream Example
11.9.5.Read File Using Java BufferedInputStream Example
11.9.6.Use buffered streams to copy a file
11.9.7.Import a file of exported preference data.
11.9.8.Save keyboard input with BufferedInputStream