FileInputStream
classin packageklyn.io
public class FileInputStream implements InputStream:
FileInputStream
All Implemented Interfaces: InputStream
File-backed binary input stream.
import klyn.io

try stream = FilePath("payload.bin").openInputStream():
header = stream.readBytes(8)
print(header.size)
Constructors
Modifier and Type Member Description
public FileInputStream No summary.
Methods
Modifier and Type Member Description
public close
close() as Void throws IOException:
No summary.
public read
read() as String throws IOException:
No summary.
public readBytes
readBytes(length as Int) as Array<Byte> throws IOException:
No summary.
Methods inherited from InputStream: read, readBytes
Methods inherited from AutoClosable: close