public interface Tokenizer
Modifier and Type | Method and Description |
---|---|
int |
countTokens()
The number of tokens in the tokenizer
|
List<String> |
getTokens()
Returns a list of all the tokens
|
boolean |
hasMoreTokens()
An iterator for tracking whether
more tokens are left in the iterator not
|
String |
nextToken()
The next token (word usually) in the string
|
void |
setTokenPreProcessor(TokenPreProcess tokenPreProcessor)
Set the token pre process
|
boolean hasMoreTokens()
int countTokens()
String nextToken()
List<String> getTokens()
void setTokenPreProcessor(TokenPreProcess tokenPreProcessor)
tokenPreProcessor
- the token pre processor to setCopyright © 2017. All rights reserved.