ProcessOutputChannel

class ProcessOutputChannel(stream: PrintStream) : TextOutputChannel

A ProcessInputChannel provides a faux asynchronous interface to a synchronous output stream.

Author

Todd L Smith

Parameters

stream

An output stream. This should generally be either System.out or System.err.

Constructors

Link copied to clipboard
fun ProcessOutputChannel(stream: PrintStream)

Construct a new ProcessOutputChannel that wraps the specified output stream.

Functions

Link copied to clipboard
open override fun close()
Link copied to clipboard
open override fun isOpen(): Boolean
Link copied to clipboard
open override fun <A> write(    buffer: CharBuffer,     attachment: A?,     handler: CompletionHandler<Int, A>)

Writes a sequence of characters to this TextOutputChannel from the given buffer.

open override fun <A> write(    data: String,     attachment: A?,     handler: CompletionHandler<Int, A>)

Writes a sequence of characters to this TextOutputChannel from the given string.