|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
An interface for text tokenisers.
Text tokenisers are used to return TextEvent
from a piece of text.
| Method Summary | |
int |
countTokens()
Calculates the number of times that this tokenizer's nextToken method can be
called before it generates an exception. |
TextEvent |
nextToken()
Returns the following token. |
void |
useRepertory(Repertory repertory)
Specifies a repertory to use for this tokeniser. |
| Method Detail |
public int countTokens()
nextToken method can be
called before it generates an exception.
public TextEvent nextToken()
throws NoSuchElementException
NoSuchElementException - If the last token has already been returned.public void useRepertory(Repertory repertory)
Tokenisers don't have to use a repertory, but they should specify whether they will use the repertory or not.
repertory - The repertory to use.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||