Class CSVToken
java.lang.Object
ca.phon.csv.CSVToken
A tokenized representation of information from a CSV file.
- Author:
- Cristopher Yates
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
CSVToken
public CSVToken(ca.phon.csv.CSVTokenType type, long start, int charPosInLine, long length, int lineNumber) Constructs a new Token- Parameters:
type- The type of the token.start- The position of the token in the file.charPosInLine- The position of the token in the current line.length- The number of characters represented by the token.lineNumber- The line containing the characters represented by the token.
-
CSVToken
public CSVToken(ca.phon.csv.CSVTokenType type, String text, long start, int charPosInLine, long length, int lineNumber) Constructs a new Token- Parameters:
type- The type of the token.text- The characters represented by the token.start- The position of the token in the file.charPosInLine- The position of the token in the current line.length- The number of characters represented by the token.lineNumber- The line containing the characters represented by the token.
-
-
Method Details
-
getType
public ca.phon.csv.CSVTokenType getType()Gets the type of the token. -
getText
Gets the tokens text.
-