public class TokenizedReader extends BufferedLineReader
Modifier and Type | Field and Description |
---|---|
private java.util.regex.Matcher |
comment
Comment pattern.
|
protected Tokenizer |
tokenizer
String tokenizer.
|
buf, lineNumber
Constructor and Description |
---|
TokenizedReader(java.util.regex.Pattern colSep,
java.lang.String quoteChars,
java.util.regex.Pattern comment)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
Tokenizer |
getTokenizer()
Get the tokenizer of the reader.
|
boolean |
nextLineExceptComments()
Read the next line into the tokenizer.
|
void |
reset()
Cleanup the internal state of the tokenized reader.
|
getBuffer, getLineNumber, lengthWithoutLinefeed, nextLine, reset, reset, reset
private java.util.regex.Matcher comment
protected Tokenizer tokenizer
public TokenizedReader(java.util.regex.Pattern colSep, java.lang.String quoteChars, java.util.regex.Pattern comment)
colSep
- Column separatorquoteChars
- Quote charactercomment
- Comment patternpublic boolean nextLineExceptComments() throws java.io.IOException
null
.java.io.IOException
public void reset()
reset()
methods.reset
in class BufferedLineReader
public void close() throws java.io.IOException
close
in interface java.lang.AutoCloseable
close
in class BufferedLineReader
java.io.IOException
public Tokenizer getTokenizer()
Copyright © 2019 ELKI Development Team. License information.