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, wait
Methods inherited from interface htsjdk.samtools.util.CloseableIterator
stream, toList
Methods 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:
hasNext
in interfaceIterator<DelimitedTextFileWithHeaderIterator.Row>
-
next
- Specified by:
next
in interfaceIterator<DelimitedTextFileWithHeaderIterator.Row>
-
remove
public void remove()- Specified by:
remove
in interfaceIterator<DelimitedTextFileWithHeaderIterator.Row>
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfacehtsjdk.samtools.util.CloseableIterator<DelimitedTextFileWithHeaderIterator.Row>
-