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
Modifier and Type Method Description String
currentString()
string containing current charboolean
hasNext()
next char available in this streamint
indexInCurrentString()
index of char in stringchar
next()
next char from this streamdefault boolean
seek(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
-
-