Package edu.cmu.tetrad.data
Class RegexTokenizer
java.lang.Object
edu.cmu.tetrad.data.RegexTokenizer
Tokenizes the given input character sequence using the type of delimiter
 specified bythe given CPDAG. Meant to function just like StringTokenizer,
 with more control over what counts as a tokenization delimiter.
- Author:
- Joseph Ramsey
- 
Constructor SummaryConstructorsConstructorDescriptionRegexTokenizer(CharSequence line, Pattern delimiterPattern, char quoteChar) Constructs a tokenizer for the given input line, using the given Pattern as delimiter.
- 
Method SummaryModifier and TypeMethodDescriptionbooleanvoidsetQuoteSensitive(boolean quoteSensitive) True iff the parser should be aware of quotation marks and remove them from returned strings.
- 
Constructor Details- 
RegexTokenizerConstructs a tokenizer for the given input line, using the given Pattern as delimiter.
 
- 
- 
Method Details- 
hasMoreTokenspublic boolean hasMoreTokens()- Returns:
- true iff more tokens exist in the line.
 
- 
nextToken- Returns:
- the next token in the line.
 
- 
setQuoteSensitivepublic void setQuoteSensitive(boolean quoteSensitive) True iff the parser should be aware of quotation marks and remove them from returned strings.
 
-