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
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionchargetChar()booleanisEmpty()voidpushBackBuffer(char[] bytes, int length) voidpushChar(char c) readNonControlCharacters(int maxChars)
-
Method Details
-
getChar
- Throws:
IOException
-
pushChar
- Throws:
IOException
-
readNonControlCharacters
- Throws:
IOException
-
pushBackBuffer
- Throws:
IOException
-
isEmpty
boolean isEmpty()
-