Category: Streams-Collections
Superclass: PositionableStream
I am the class of writeable streams. I only allow write operations to my instances; reading is strictly forbidden.

Method category index

instance creation (class)
accessing-writing (instance)
positioning (instance)

instance creation (class)

on: aCollection
Answer a new instance of the receiver which streams on aCollection. Every item of aCollection is discarded.

with: aCollection

Answer a new instance of the receiver which streams from the end of aCollection.

with: aCollection from: firstIndex to: lastIndex

Answer a new instance of the receiver which streams from the firstIndex-th item of aCollection to the lastIndex-th. The pointer is moved to the last item in that range.

top


accessing-writing (instance)

contents
Returns a collection of the same type that the stream accesses, up to and including the final element.

next: n putAll: aCollection startingAt: pos

Put n characters or bytes of aCollection, starting at the pos-th, in the collection buffer.

nextPut: anObject

Store anObject as the next item in the receiver. Grow the collection if necessary

readStream

Answer a ReadStream on the same contents as the receiver

reverseContents

Returns a collection of the same type that the stream accesses, up to and including the final element, but in reverse order.

top


positioning (instance)

emptyStream
Extension - Reset the stream

top