Package cc.redberry.rings.io
Interface Tokenizer.CharacterStream
-
- All Superinterfaces:
Serializable
- Enclosing class:
- Tokenizer
public static interface Tokenizer.CharacterStream extends Serializable
Stream of chars. Implementations are not synchronized and doesn't support concurrent iteration.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description StringcurrentString()string containing current charbooleanhasNext()next char available in this streamintindexInCurrentString()index of char in stringcharnext()next char from this streamdefault booleanseek(char c)skip all chars preceding the specified char and place caret to the first char after the specified one
-
-
-
Method Detail
-
hasNext
boolean hasNext()
next char available in this stream
-
next
char next()
next char from this stream
-
currentString
String currentString()
string containing current char
-
indexInCurrentString
int indexInCurrentString()
index of char in string
-
seek
default boolean seek(char c)
skip all chars preceding the specified char and place caret to the first char after the specified one- Returns:
- false if stream finished without specified char and true otherwise
-
-