FilterInputStream « File « Java Tutorial

11.12.1.introduce a protocol for reading arbitrary length data in a uniform way
11.12.2.An limited-data-size input stream
11.12.3.Reads from an underlying InputStream up to a defined number of bytes or the end of the underlying stream
11.12.4.A trace of the data that is being retrieved from an input stream