Package org.apache.flink.cdc.common.text
Interface TokenStream.CharacterStream
-
- All Known Implementing Classes:
TokenStream.CharacterArrayStream
- Enclosing class:
- TokenStream
public static interface TokenStream.CharacterStreamInterface used by aTokenStream.Tokenizerto iterate through the characters in the content input to theTokenStream.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanhasNext()Determine if there is another character available in this stream.intindex()Get the index for the last character returned fromnext().charnext()Obtain the next character value, and advance the stream.Positionposition(int startIndex)Get the position for the last character returned fromnext().
-
-
-
Method Detail
-
hasNext
boolean hasNext()
Determine if there is another character available in this stream.- Returns:
- true if there is another character (and
next()can be called), or false otherwise
-
next
char next()
Obtain the next character value, and advance the stream.- Returns:
- the next character
- Throws:
NoSuchElementException- if there is nonext character
-
index
int index()
Get the index for the last character returned fromnext().- Returns:
- the index of the last character returned
-
-