public class TabbedTextFileWithHeaderParser extends java.lang.Object implements java.lang.Iterable<TabbedTextFileWithHeaderParser.Row>, java.lang.AutoCloseable
Modifier and Type | Class and Description |
---|---|
class |
TabbedTextFileWithHeaderParser.Row |
Constructor and Description |
---|
TabbedTextFileWithHeaderParser(java.io.File file) |
TabbedTextFileWithHeaderParser(java.io.File file,
java.lang.String[] columnHeaders) |
TabbedTextFileWithHeaderParser(TabbedInputParser parser) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Release all resources associated with the parser.
|
java.util.Set<java.lang.String> |
columnLabels() |
java.util.List<java.lang.String> |
columnLabelsList() |
java.util.Set<java.lang.String> |
getColumnNames() |
int |
getCurrentLineNumber() |
boolean |
hasColumn(java.lang.String columnLabel) |
htsjdk.samtools.util.CloseableIterator<TabbedTextFileWithHeaderParser.Row> |
iterator()
Creates the iterator object.
|
public TabbedTextFileWithHeaderParser(TabbedInputParser parser)
public TabbedTextFileWithHeaderParser(java.io.File file)
public TabbedTextFileWithHeaderParser(java.io.File file, java.lang.String[] columnHeaders)
public boolean hasColumn(java.lang.String columnLabel)
columnLabel
- public java.util.Set<java.lang.String> columnLabels()
public java.util.List<java.lang.String> columnLabelsList()
public htsjdk.samtools.util.CloseableIterator<TabbedTextFileWithHeaderParser.Row> iterator()
iterator
in interface java.lang.Iterable<TabbedTextFileWithHeaderParser.Row>
public void close()
close
in interface java.lang.AutoCloseable
public int getCurrentLineNumber()
public java.util.Set<java.lang.String> getColumnNames()