public abstract class AbstractInputParser
extends htsjdk.samtools.util.AbstractIterator<java.lang.String[]>
implements java.lang.Iterable<java.lang.String[]>, htsjdk.samtools.util.CloseableIterator<java.lang.String[]>
| Constructor and Description |
|---|
AbstractInputParser() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String[] |
advance() |
protected void |
calculateWordCount(byte[] line)
Calculates the number of delimiter-separated "words" in a line and sets the value of
wordCount |
abstract void |
close()
Closes this stream and releases any system resources associated with it.
|
abstract java.lang.String |
getFileName() |
protected int |
getWordCount() |
protected boolean |
isBlank(byte[] line)
Determines whether a given line is a comment
|
protected boolean |
isComment(byte[] line)
Determines whether a given line is a comment
|
protected boolean |
isDelimiter(byte b)
Determines whether a given character is a delimiter
|
protected boolean |
isSkipBlankLines() |
protected boolean |
isTreatGroupedDelimitersAsOne() |
java.util.Iterator<java.lang.String[]> |
iterator() |
protected abstract byte[] |
readNextLine() |
protected void |
setSkipBlankLines(boolean skipBlankLines) |
protected void |
setTreatGroupedDelimitersAsOne(boolean treatGroupedDelimitersAsOne) |
protected void |
setWordCount(int wordCount) |
hasNext, isIterating, next, peek, removepublic abstract void close()
close in interface htsjdk.samtools.util.CloseableIterator<java.lang.String[]>close in interface java.io.Closeableclose in interface java.lang.AutoCloseableprotected abstract byte[] readNextLine()
public abstract java.lang.String getFileName()
public java.util.Iterator<java.lang.String[]> iterator()
iterator in interface java.lang.Iterable<java.lang.String[]>protected java.lang.String[] advance()
advance in class htsjdk.samtools.util.AbstractIterator<java.lang.String[]>protected void calculateWordCount(byte[] line)
wordCountline - representative line from the fileprotected boolean isComment(byte[] line)
line - the line to evaluateprotected boolean isBlank(byte[] line)
line - the line to evaluateprotected boolean isDelimiter(byte b)
b - the character to evaluateb is a delimiter; otherwise falseprotected int getWordCount()
protected void setWordCount(int wordCount)
protected boolean isTreatGroupedDelimitersAsOne()
protected void setTreatGroupedDelimitersAsOne(boolean treatGroupedDelimitersAsOne)
protected boolean isSkipBlankLines()
protected void setSkipBlankLines(boolean skipBlankLines)