TextInputChannel

interface TextInputChannel : AsynchronousChannel

TextInputChannel provides a wrapper for a synchronous input reader that is as asynchronous as possible.

Author

Todd L Smith

Functions

Link copied to clipboard
abstract override fun close()
Link copied to clipboard
abstract fun isOpen(): Boolean
Link copied to clipboard
abstract fun mark(readAhead: Int)

Mark the current position in the channel. Subsequent calls to reset will attempt to reset this position.

Link copied to clipboard
abstract fun <A> read(    buffer: CharBuffer,     attachment: A?,     handler: CompletionHandler<Int, A>)

Reads a sequence of characters from this reader into the given buffer.

Link copied to clipboard
abstract fun reset()

Attempt to reposition the channel to the most recently saved mark.

Inheritors

Link copied to clipboard
Link copied to clipboard