Package org.apache.commons.csv
Class Token
- java.lang.Object
-
- org.apache.commons.csv.Token
-
final class Token extends java.lang.ObjectInternal token representation.This is used as a contract between the lexer and the parser.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classToken.Type
-
Field Summary
Fields Modifier and Type Field Description (package private) java.lang.StringBuildercontentThe content buffer, never null.private static intDEFAULT_CAPACITYLength of the initial token (content-)buffer(package private) booleanisQuoted(package private) booleanisReadyToken ready flag: indicates a valid token with content (ready for the parser).(package private) Token.TypetypeToken type
-
Constructor Summary
Constructors Constructor Description Token()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidreset()java.lang.StringtoString()Converts the token state to a string to ease debugging.
-
-
-
Field Detail
-
DEFAULT_CAPACITY
private static final int DEFAULT_CAPACITY
Length of the initial token (content-)buffer- See Also:
- Constant Field Values
-
type
Token.Type type
Token type
-
content
final java.lang.StringBuilder content
The content buffer, never null.
-
isReady
boolean isReady
Token ready flag: indicates a valid token with content (ready for the parser).
-
isQuoted
boolean isQuoted
-
-