|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public static interface TokenStream.CharacterStream

Interface used by a TokenStream.Tokenizer to iterate through the characters in the content input to the TokenStream.
| Method Summary | |
|---|---|
boolean |
hasNext()
Determine if there is another character available in this stream. |
int |
index()
Get the index for the last character returned from next(). |
boolean |
isNext(char c)
Determine if the next character on the sream is the supplied value. |
boolean |
isNext(char nextChar,
char followingChar)
Determine if the next two characters on the stream match the supplied values. |
boolean |
isNext(char nextChar,
char nextChar2,
char nextChar3)
Determine if the next three characters on the sream match the supplied values. |
boolean |
isNextAnyOf(char[] characters)
Determine if the next character on the stream matches one of the supplied characters. |
boolean |
isNextAnyOf(String characters)
Determine if the next character on the stream matches one of the supplied characters. |
boolean |
isNextLetterOrDigit()
Determine if the next character on the sream is a letter or digit. |
boolean |
isNextValidXmlCharacter()
Determine if the next character on the sream is a valid XML character. |
boolean |
isNextValidXmlNameCharacter()
Determine if the next character on the sream is a valid XML NCName character. |
boolean |
isNextValidXmlNcNameCharacter()
Determine if the next character on the sream is a valid XML NCName character. |
boolean |
isNextWhitespace()
Determine if the next character on the sream is a whitespace character. |
char |
next()
Obtain the next character value, and advance the stream. |
Position |
position(int startIndex)
Get the position for the last character returned from next(). |
| Method Detail |
|---|
boolean hasNext()
next() can be called), or false otherwisechar next()
NoSuchElementException - if there is no next characterint index()
next().
Position position(int startIndex)
next().
startIndex -
boolean isNextWhitespace()
whitespace character. This
method does not advance the stream.
next character and it is a whitespace character, or false otherwiseboolean isNextLetterOrDigit()
letter or digit. This method
does not advance the stream.
next character and it is a letter or digit, or false otherwiseboolean isNextValidXmlCharacter()
valid XML character. This method
does not advance the stream.
next character and it is a valid XML character, or false otherwiseboolean isNextValidXmlNameCharacter()
valid XML NCName character.
This method does not advance the stream.
next character and it is a valid XML Name character, or false otherwiseboolean isNextValidXmlNcNameCharacter()
valid XML NCName character.
This method does not advance the stream.
next character and it is a valid XML NCName character, or false otherwiseboolean isNext(char c)
c - the character value to compare to the next character on the stream
next character and it is the supplied character, or false otherwise
boolean isNext(char nextChar,
char followingChar)
nextChar - the character value to compare to the next character on the streamfollowingChar - the character value to compare to the character immediately after the next character on the stream
nextChar and
the second matches followingChar
boolean isNext(char nextChar,
char nextChar2,
char nextChar3)
nextChar - the character value to compare to the next character on the streamnextChar2 - the character value to compare to the second character on the streamnextChar3 - the character value to compare to the second character on the stream
nextChar and
the second matches followingCharboolean isNextAnyOf(char[] characters)
characters - the characters to match
next character and it does match one of the supplied characters, or false
otherwiseboolean isNextAnyOf(String characters)
characters - the characters to match
next character and it does match one of the supplied characters, or false
otherwise
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||