ConsoleTextWriter
classin packageklyn.io
public class ConsoleTextWriter extends AbstractTextWriter:
└ ConsoleTextWriter

Text writer backed by the process standard output or standard error stream.

Applications normally use the shared instances exposed by Application.out and Application.err rather than constructing this class directly.

Example

Application.err.writeLine("Unable to load configuration")

Constructors
Modifier and Type Member Description
public ConsoleTextWriter
ConsoleTextWriter(standardError as Boolean = false):
Creates a writer for one of the process output streams.
Methods
Modifier and Type Member Description
public override close
close() as Void:
Leaves the process-owned stream open.
public override write
write(readonly value as String) as Void throws IOException:
Writes and immediately flushes text to the selected process stream.
Inherited Methods
methodInherited Methods from AbstractTextWriter: close, write, writeChar, writeLine, writeLines
methodInherited Methods from TextWriter: write, writeChar, writeLine, writeLines
methodInherited Methods from AutoClosable: close