Package picard.util
Class TabbedTextFileWithHeaderParser
java.lang.Object
picard.util.TabbedTextFileWithHeaderParser
- All Implemented Interfaces:
AutoCloseable
,Iterable<TabbedTextFileWithHeaderParser.Row>
public class TabbedTextFileWithHeaderParser
extends Object
implements Iterable<TabbedTextFileWithHeaderParser.Row>, AutoCloseable
Parse a tabbed text file in which columns are found by looking at a header line rather than by position.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Release all resources associated with the parser.int
boolean
htsjdk.samtools.util.CloseableIterator<TabbedTextFileWithHeaderParser.Row>
iterator()
Creates the iterator object.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
TabbedTextFileWithHeaderParser
-
TabbedTextFileWithHeaderParser
-
TabbedTextFileWithHeaderParser
-
-
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.
-
columnLabelsList
- Returns:
- The column labels for this file as a List, in no particular order.
-
iterator
Creates the iterator object. It is illegal to have more than one iterator extant on the same parser object.- Specified by:
iterator
in interfaceIterable<TabbedTextFileWithHeaderParser.Row>
-
close
public void close()Release all resources associated with the parser. Iteration will not work after this has been called.- Specified by:
close
in interfaceAutoCloseable
-
getCurrentLineNumber
public int getCurrentLineNumber() -
getColumnNames
-