|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.basex.util.TokenIterator
public final class TokenIterator
This class allows the iteration on tokens.
| Constructor Summary | |
|---|---|
TokenIterator(byte[] t)
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
contains(byte[] tok)
Check if the current token contains the specified token. |
int |
cp(int i)
Returns the specified character. |
byte |
get(int i)
Returns the specified character, starting from the current position. |
void |
init()
Initializes the iterator. |
int |
len(int i)
Returns the specified character length. |
void |
mark()
Remembers the current position. |
java.lang.String |
marked()
Returns the marked string. |
boolean |
more()
Checks if the text has more words to print. |
java.lang.String |
next()
Returns the next token. |
int |
size()
Returns the size of the current character. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TokenIterator(byte[] t)
t - text| Method Detail |
|---|
public boolean contains(byte[] tok)
tok - token to be checked
public int cp(int i)
i - character position
public byte get(int i)
i - character position
public void init()
public int len(int i)
i - character position
public void mark()
public java.lang.String marked()
public boolean more()
public java.lang.String next()
public int size()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||