Stream documentation

# Stream

Stream inherits from Object and defines instance variables collection, position, limit. It has subclasses ReadStream and WriteStream.

Streams provide a position reference for noncontinuous enumeration of arrayed collections.

## Methods defined in Stream:

### Methods for accessing:

- contents
- size
  Answer the number of remaining elements in the stream.

### Methods for initialization:

- on: streamedCollection

### Methods for positioning:

- position
- position: newPosition
- reset
- setToEnd
- skip: amount
  Skip forward, or backward if amount is negative.

Pocket Smalltalk Documentation