Interface CharInput
-
- All Known Subinterfaces:
CharInputReader
- All Known Implementing Classes:
AbstractCharInputReader,ConcurrentCharInputReader,DefaultCharInputReader,LookaheadCharInputReader
public interface CharInputA (very) basic character input definition.- See Also:
Format
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description chargetChar()Returns the last character returned by thenextChar()method.charnextChar()Returns the next character in the input.
-
-
-
Method Detail
-
nextChar
char nextChar()
Returns the next character in the input.- Returns:
- the next character in the input. '\0' if there are no more characters in the input or if the CharInput is stopped.
-
getChar
char getChar()
Returns the last character returned by thenextChar()method.- Returns:
- the last character returned by the
nextChar()method.'\0' if there are no more characters in the input or if the CharInput is stopped.
-
-