Package htsjdk.tribble.readers
Class LineIteratorImpl
- All Implemented Interfaces:
LineIterator
,Closeable
,AutoCloseable
,Iterator<String>
A simple iterator over the elements in LineReader.
-
Field Summary
Fields inherited from class htsjdk.samtools.util.AbstractIterator
next
-
Constructor Summary
-
Method Summary
Methods inherited from class htsjdk.samtools.util.AbstractIterator
hasNext, isIterating, next, peek, remove
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining, hasNext, next, remove
Methods inherited from interface htsjdk.tribble.readers.LineIterator
peek
-
Constructor Details
-
LineIteratorImpl
- Parameters:
lineReader
- The line reader whose elements are to be iterated over.
-
-
Method Details
-
advance
- Specified by:
advance
in classAbstractIterator<String>
- Returns:
- the next element or null if the iterator is at the end
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
toString
-