TextInputChannel provides a wrapper for a synchronous input reader that is as asynchronous as possible.
TextInputChannel
Todd L Smith
Mark the current position in the channel. Subsequent calls to reset will attempt to reset this position.
Reads a sequence of characters from this reader into the given buffer.
Attempt to reposition the channel to the most recently saved mark.