Package org.nustaq.kson
Class KsonStringCharInput
java.lang.Object
org.nustaq.kson.KsonStringCharInput
- All Implemented Interfaces:
KsonCharInput
implementation of char input on top of a String
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
KsonStringCharInput
-
KsonStringCharInput
-
-
Method Details
-
readChar
public int readChar()- Specified by:
readChar
in interfaceKsonCharInput
- Returns:
- char or -1 for eof
-
peekChar
public int peekChar()- Specified by:
peekChar
in interfaceKsonCharInput
-
position
public int position()- Specified by:
position
in interfaceKsonCharInput
-
back
public int back(int num) - Specified by:
back
in interfaceKsonCharInput
-
isEof
public boolean isEof()- Specified by:
isEof
in interfaceKsonCharInput
-
getString
- Specified by:
getString
in interfaceKsonCharInput
-