htsjdk.samtools.util.CloseableIterator<String[]>, Closeable, AutoCloseable, Iterable<String[]>, Iterator<String[]>CsvInputParser, TabbedInputParserpublic class BasicInputParser extends AbstractInputParser
| Constructor | Description |
|---|---|
BasicInputParser(boolean treatGroupedDelimitersAsOne,
int wordCount,
File... files) |
Constructor.
|
BasicInputParser(boolean treatGroupedDelimitersAsOne,
int wordCount,
InputStream... inputStreams) |
|
BasicInputParser(boolean treatGroupedDelimitersAsOne,
File... files) |
Constructor.
|
BasicInputParser(boolean treatGroupedDelimitersAsOne,
InputStream... inputStreams) |
Constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
advanceFile() |
|
void |
close() |
Closes the underlying stream
|
String |
getCurrentLine() |
Provides access to the current (just parsed) line in pre-parsed format.
|
int |
getCurrentLineNumber() |
NOTE: Because AbstractInputParser pre-fetches the next line, this method actually returns the
next line, not the most recent line returned by next().
|
String |
getFileName() |
Gets the name of the file being parsed
|
protected byte[] |
readNextLine() |
Workhorse method that reads the next line from the underlying reader
|
advance, calculateWordCount, getWordCount, isBlank, isComment, isDelimiter, isSkipBlankLines, isTreatGroupedDelimitersAsOne, iterator, setSkipBlankLines, setTreatGroupedDelimitersAsOne, setWordCounthasNext, isIterating, next, peek, removeforEach, spliteratorforEachRemaining, hasNext, next, removepublic BasicInputParser(boolean treatGroupedDelimitersAsOne,
InputStream... inputStreams)
inputStreams - the file(s) to parse, in orderpublic BasicInputParser(boolean treatGroupedDelimitersAsOne,
int wordCount,
InputStream... inputStreams)
public BasicInputParser(boolean treatGroupedDelimitersAsOne,
File... files)
files - the file(s) to parse, in orderpublic BasicInputParser(boolean treatGroupedDelimitersAsOne,
int wordCount,
File... files)
files - the file(s) to parsewordCount - number of whitespace-separated "words" per lineprotected byte[] readNextLine()
readNextLine in class AbstractInputParserprotected void advanceFile()
public void close()
close in interface AutoCloseableclose in interface Closeableclose in interface htsjdk.samtools.util.CloseableIterator<String[]>close in class AbstractInputParserpublic String getFileName()
getFileName in class AbstractInputParserpublic String getCurrentLine()
public int getCurrentLineNumber()