Package org.apache.commons.csv
Class Token
- java.lang.Object
-
- org.apache.commons.csv.Token
-
final class Token extends java.lang.Object
Internal 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 class
Token.Type
-
Field Summary
Fields Modifier and Type Field Description (package private) java.lang.StringBuilder
content
The content buffer, never null.private static int
DEFAULT_CAPACITY
Length of the initial token (content-)buffer(package private) boolean
isQuoted
(package private) boolean
isReady
Token ready flag: indicates a valid token with content (ready for the parser).(package private) Token.Type
type
Token type
-
Constructor Summary
Constructors Constructor Description Token()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
reset()
java.lang.String
toString()
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
-
-