public class BasicInputParser extends AbstractInputParser
| Constructor and Description |
|---|
BasicInputParser(boolean treatGroupedDelimitersAsOne,
File... files)
Constructor.
|
BasicInputParser(boolean treatGroupedDelimitersAsOne,
InputStream... inputStreams)
Constructor.
|
BasicInputParser(boolean treatGroupedDelimitersAsOne,
int wordCount,
File... files)
Constructor.
|
BasicInputParser(boolean treatGroupedDelimitersAsOne,
int wordCount,
InputStream... inputStreams) |
| Modifier and Type | Method and 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, removeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, 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 htsjdk.samtools.util.CloseableIterator<String[]>close in interface Closeableclose in interface AutoCloseableclose in class AbstractInputParserpublic String getFileName()
getFileName in class AbstractInputParserpublic String getCurrentLine()
public int getCurrentLineNumber()