Package picard.util
Class DelimitedTextFileWithHeaderIterator
java.lang.Object
picard.util.DelimitedTextFileWithHeaderIterator
- All Implemented Interfaces:
htsjdk.samtools.util.CloseableIterator<DelimitedTextFileWithHeaderIterator.Row>,Closeable,AutoCloseable,Iterator<DelimitedTextFileWithHeaderIterator.Row>
public class DelimitedTextFileWithHeaderIterator
extends Object
implements htsjdk.samtools.util.CloseableIterator<DelimitedTextFileWithHeaderIterator.Row>
Iterate through a delimited text file in which columns are found by looking at a header line rather than by position.
TODO: This effectively replaces TabbedTextFileWithHeaderParser although the latter hasn't been modified to use this
code instead.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface htsjdk.samtools.util.CloseableIterator
stream, toListMethods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
DelimitedTextFileWithHeaderIterator
-
-
Method Details
-
hasColumn
- Parameters:
columnLabel-- Returns:
- True if the given column label appears in the header.
-
columnLabels
- Returns:
- The set of column labels for this file in no particular order.
-
getCurrentLineNumber
public int getCurrentLineNumber() -
getColumnNames
-
hasNext
public boolean hasNext()- Specified by:
hasNextin interfaceIterator<DelimitedTextFileWithHeaderIterator.Row>
-
next
- Specified by:
nextin interfaceIterator<DelimitedTextFileWithHeaderIterator.Row>
-
remove
public void remove()- Specified by:
removein interfaceIterator<DelimitedTextFileWithHeaderIterator.Row>
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfacehtsjdk.samtools.util.CloseableIterator<DelimitedTextFileWithHeaderIterator.Row>
-