OutputStream
interface in package klyn.io

    public interface OutputStream extends AutoClosable:

AutoClosable
└ OutputStream

Binary output stream contract.

Concrete implementations expose a byte-oriented writable resource such as a file or a socket.

    import klyn.io

    stream as OutputStream = FilePath("out.bin").openOutputStream()
    try:
    stream.write("OK")
    finally:
    stream.close()

Methods

Modifier and Type | Member | Description
--- | --- | ---
public | write `write(value as String) as Void throws IOException` | Writes text to the stream.
public | writeBytes `writeBytes(value as Array<Byte>) as Void throws IOException` | Writes raw bytes to the stream.

Inherited Methods
method Inherited Methods from AutoClosable: close