A subclass of the Supplier class (
Section 5.4.18, “The Supplier Class”) that will provided stream lines using supplier semantics. This allows the programmer to iterate over the remaining lines in a stream. A
StreamSupplier object provides a snapshot of the stream at the point in time it is created, including the current line read position. In general, the iteration is not effected by later changes to the read and write positioning of the stream. However, forces external to the iteration may change the
content of the remaining lines as the iteration progresses.