BufferedIterator
converts a regular iterator into one which implements {@link Iterable} (and {@link Enumeration} for good measure).Implementation note: The first time you read from it, it duplicates objects into a list. The next time, it creates an iterator from that list. The implementation handles infinite iterators gracefully: it copies objects onto the replay list only when they are requested for the first time.
@author jhyde @version $Id$ @since 26 April, 2002
|
|