5.4.21. StreamSupplier Class
A subclass of the
Supplier Class that provides 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
affected 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.