public class CSVTokenizer extends Tokenizer
token() returns the next token, which can be either:
Modifier and Type | Field and Description |
---|---|
protected java.lang.Object |
lastTokened |
Constructor and Description |
---|
CSVTokenizer(java.io.Reader in) |
CSVTokenizer(java.io.Reader in,
boolean numberReadAsString)
If you set numberReadAsString is true, then any number will be maintained
as a String.
|
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args) |
java.lang.Object |
token()
Return the next object read from the stream.
|
protected java.lang.Object |
tokenAfterComma()
Return the next object read from the stream, called if a comma is found
first in order to catch empty fields accurately.
|
bclear, bpush, error, isAlpha, isAlphanumeric, isAny, isDigit, isEOF, isNewline, next, putback
public CSVTokenizer(java.io.Reader in)
public CSVTokenizer(java.io.Reader in, boolean numberReadAsString)
public java.lang.Object token()
protected java.lang.Object tokenAfterComma()
public static void main(java.lang.String[] args)
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details