public class FileInputStream implements InputStream:
import klyn.io
try stream = FilePath("payload.bin").openInputStream():
header = stream.readBytes(8)
print(header.size)| Modifier and Type | Member | Description |
|---|---|---|
| public | FileInputStreamFileInputStream(path as String): |
No summary. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | closeclose() as Void throws IOException: |
No summary. |
| public | readread() as String throws IOException: |
No summary. |
| public | readBytesreadBytes(length as Int) as Array<Byte> throws IOException: |
No summary. |