|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.aliasi.tokenizer.Tokenizer
com.aliasi.tokenizer.FilterTokenizer
public class FilterTokenizer
A FilterTokenizer contains a tokenizer to
which it delegates the tokenizer methods.
| Field Summary | |
|---|---|
protected Tokenizer |
mTokenizer
The contained tokenizer. |
| Constructor Summary | |
|---|---|
FilterTokenizer(Tokenizer tokenizer)
Construct a filter tokenizer that contains the specified tokenizer. |
|
| Method Summary | |
|---|---|
int |
lastTokenStartPosition()
Returns the starting index of the last token returned. |
String |
nextToken()
Returns the next token from this tokenizer. |
String |
nextWhitespace()
Returns the next white space from this tokenizer. |
void |
setTokenizer(Tokenizer tokenizer)
Sets the contained tokenizer to the specified tokenizer. |
| Methods inherited from class com.aliasi.tokenizer.Tokenizer |
|---|
iterator, tokenize, tokenize |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Tokenizer mTokenizer
| Constructor Detail |
|---|
public FilterTokenizer(Tokenizer tokenizer)
tokenizer - Contained tokenizer.| Method Detail |
|---|
public void setTokenizer(Tokenizer tokenizer)
tokenizer - New contained tokenizer.public String nextToken()
nextToken in class Tokenizerpublic String nextWhitespace()
nextWhitespace in class Tokenizerpublic int lastTokenStartPosition()
lastTokenStartPosition in class Tokenizer
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||