8.71. File tom/StringStream

class tom.StringStream

A StringStream is sort-of an enumerator on a String, with a InputStream interface.

inherits

State supers: State, InputStream

methods


instance (id)
  with String string;

Return a new stream on the string.

instance tom.StringStream

variables

String string;

The String we're streaming.

int next;

The index of the next byte to read.

methods


protected id
  init String s;

Designated initializer.


byte
  read;

Undocumented.


int
  read;

Undocumented.


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

Read the range (start, num) from the string into the buffer.