public class ConsoleOutputStream implements OutputStream
Borrowed binary view of process standard output or standard error. Bytes are written exactly, including NUL and LF, without text-mode newline conversion or changing the process-wide CRT mode. Writes complete the supplied range or report a failure; close() never closes the shared stream.
output = ConsoleOutputStream()
try input = FilePath("payload.bin").openInputStream():
output.writeBytes(input.readBytes(4096l))| Modifier and Type | Member | Description |
|---|---|---|
| public | ConsoleOutputStreamConsoleOutputStream(standardError as Boolean = false) |
Selects a process-owned output stream; does not duplicate its handle. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | closeclose() as Void |
Leaves the process-owned output open; this borrowed view remains usable. |
| public | writewrite(value as String) as Void |
Encodes text as UTF-8 in bounded chunks, preserving embedded U+0000. |
| public | writeByteswriteBytes(value as Byte[]) as Void |
Writes all supplied bytes; null is ignored. |
| public | writeFrom | Writes an existing byte-array range exactly, without copying it first. |