Class AbstractPeekableIterator<E>
java.lang.Object
org.archive.util.iterator.AbstractPeekableIterator<E>
- All Implemented Interfaces:
Closeable,AutoCloseable,Iterator<E>,CloseableIterator<E>,PeekableIterator<E>
- Direct Known Subclasses:
BoundedStringIterator,MultiBlockIterator,PrefixMatchStringIterator,SeekableLineReaderIterator,StartBoundedStringIterator,SummaryBlockIterator,TimestampDedupIterator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidclose()static <K> Comparator<PeekableIterator<K>> getComparator(Comparator<K> comparator) abstract EbooleanhasNext()next()peek()voidremove()static <T> PeekableIterator<T> static PeekableIterator<String> wrapReader(BufferedReader reader) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
AbstractPeekableIterator
public AbstractPeekableIterator()
-
-
Method Details
-
getNextInner
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
hasNext
-
next
-
remove
-
peek
- Specified by:
peekin interfacePeekableIterator<E>
-
wrap
-
wrapReader
-
getComparator
-