Interface TerminalDataStream
- All Known Implementing Classes:
ArrayTerminalDataStream
,TtyBasedArrayDataStream
public interface TerminalDataStream
Represents data communication interface for terminal.
It allows to
getChar()
by one and pushChar(char)
back as well as requesting a chunk of plain ASCII
characters (readNonControlCharacters(int)
- for faster processing from buffer in the size <=maxChars).-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionchar
getChar()
boolean
isEmpty()
void
pushBackBuffer
(char[] bytes, int length) void
pushChar
(char c) readNonControlCharacters
(int maxChars)
-
Method Details
-
getChar
- Throws:
IOException
-
pushChar
- Throws:
IOException
-
readNonControlCharacters
- Throws:
IOException
-
pushBackBuffer
- Throws:
IOException
-
isEmpty
boolean isEmpty()
-