Back: WordArray
Up: Class reference
Forward: WriteStream class-instance creation
 
Top: GNU Smalltalk User's Guide
Contents: Table of Contents
Index: Class index
About: About this document

6.182 WriteStream

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

6.182.1 WriteStream class: instance creation  (class)
6.182.2 WriteStream: accessing  (instance)
6.182.3 WriteStream: accessing-writing  (instance)
6.182.4 WriteStream: positioning  (instance)


6.182.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.


6.182.2 WriteStream: accessing

size
Answer how many objects have been written


6.182.3 WriteStream: accessing-writing

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


6.182.4 WriteStream: positioning

emptyStream
Extension - Reset the stream

position: anInteger
Skip to the anInteger-th item backwards in the stream. Fail if anInteger>self position. The stream is truncated after the pointer

skip: anInteger
Skip (anInteger negated) items backwards in the stream. Fail if anInteger>0. The stream is truncated after the pointer




This document was generated on May, 12 2002 using texi2html