# WriteStream

WriteStream inherits from Stream and defines no instance variables. It has subclasses ByteArrayWriteStream and StringWriteStream.

WriteStreams can only write to a collection.

## Methods defined in WriteStream:

### Methods for accessing:

- contents

### Methods for private:

- expandCollection

### Methods for stream operations:

- cr
- next: count put: object
- nextPut: object
- nextPutAll: collection
  This is only valid for indexable (arrayed) collections.
- print: object
- space
- tab

Pocket Smalltalk Documentation