Back: WordArray-built ins Up: Base classes Forward: WriteStream class-instance creation   Top: GNU Smalltalk Library Reference Contents: Table of Contents Index: Class index About: About this document

1.217 WriteStream

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

1.217.1 WriteStream class: instance creation  (class)
1.217.2 WriteStream: accessing-writing  (instance)
1.217.3 WriteStream: positioning  (instance)


1.217.1 WriteStream class: instance creation

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.


1.217.2 WriteStream: accessing-writing

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.


1.217.3 WriteStream: positioning

emptyStream
Extension - Reset the stream



Back: WriteStream-accessing-writing Up: WriteStream Forward: ZeroDivide   Top: GNU Smalltalk Library Reference Contents: Table of Contents Index: Class index About: About this document


This document was generated on February, 22 2012 using texi2html