8.12. File tom/ByteStream

class tom.ByteStream

Instances of the ByteStream class are an abstraction of the UNIX file descriptors.

inherits

State supers: Descriptor, InputOutputStream

instance tom.ByteStream

methods


byte
  read;

Read a byte and return it, raising an exception on end-of-file or error.


int
  read;

Read a byte and return it, returning EOF on end-of-file.


int
  readRange (int, int) (start, num)
       into MutableByteArray buffer;

Have the buffer read at most num bytes from the receiving ByteStream starting at start.


void
  write byte b;

Undocumented.


int
  write byte b;

Undocumented.


int
  writeBytes int num
        from pointer address;

Undocumented.