public interface OutputStream extends AutoClosable:
import klyn.io
stream as OutputStream = FilePath("out.bin").openOutputStream()
try:
stream.write("OK")
finally:
stream.close()| Modifier and Type | Member | Description |
|---|---|---|
| public | writewrite(value as String) as Void throws IOException |
Writes text to the stream. |
| public | writeByteswriteBytes(value as Array<Byte>) as Void throws IOException |
Writes raw bytes to the stream. |