import "io/stream";
Synchronous stream.
Subclasses: ArrayStream, BufferedStream, ZStream, GZipStream, File, TCPConnection, ProcessStream
static function create(): Stream
virtual function read_part(buf: Byte[], off: Integer, len: Integer): Integer
virtual function write_part(buf: Byte[], off: Integer, len: Integer): Integer
virtual function flush()
virtual function skip(len: Integer)
virtual function close()
function read(buf: Byte[])
function read(buf: Byte[], off: Integer, len: Integer)
read_part
function.
If there is not enough data an error is thrown.
function write(buf: Byte[])
function write(buf: Byte[], off: Integer, len: Integer)
write_part
function.
function read_all(): Byte[]
function read_all(buf: Byte[]): Byte[]
function read_part(buf: Byte[]): Integer
read_part
function that tries to read the whole buffer.
function write_part(buf: Byte[]): Integer
write_part
function that tries to write the whole buffer.
function read_byte(): Byte
function read_ubyte(): Byte
function read_short_LE(): Short
function read_ushort_LE(): Short
function read_short_BE(): Short
function read_ushort_BE(): Short
function read_int_LE(): Integer
function read_int_BE(): Integer
function read_long_LE(): Long
function read_long_LE(out: Long): Long
function read_long_BE(): Long
function read_long_BE(out: Long): Long
function read_float_LE(): Float
function read_float_BE(): Float
function read_double_LE(): Double
function read_double_LE(out: Double): Double
function read_double_BE(): Double
function read_double_BE(out: Double): Double
function write_byte(value: Byte)
function write_ubyte(value: Byte)
function write_short_LE(value: Short)
function write_short_BE(value: Short)
function write_ushort_LE(value: Short)
function write_ushort_BE(value: Short)
function write_int_LE(value: Integer)
function write_int_BE(value: Integer)
function write_long_LE(value: Long)
function write_long_BE(value: Long)
function write_float_LE(value: Float)
function write_float_BE(value: Float)
function write_double_LE(value: Double)
function write_double_BE(value: Double)
function write_stream(stream: Stream)
function write_null_string(s: Byte[])
function write_null_string(s: Byte[], off: Integer, len: Integer)