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

1.139 ReadWriteStream

Defined in namespace Smalltalk
Superclass: WriteStream
Category: Streams-Collections
I am the class of streams that may be read and written from simultaneously. In some sense, I am the best of both ReadStream and WriteStream.

1.139.1 ReadWriteStream class: instance creation  (class)
1.139.2 ReadWriteStream: positioning  (instance)


1.139.1 ReadWriteStream class: instance creation

on: aCollection
Answer a new stream working on aCollection from its start. The stream starts at the front of aCollection.

on: aCollection from: firstIndex to: lastIndex
Answer an instance of the receiver streaming from the firstIndex-th item of aCollection to the lastIndex-th

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


1.139.2 ReadWriteStream: positioning

contents
Unlike WriteStreams, ReadWriteStreams return the whole contents of the underlying collection.



Back: ReadWriteStream class-instance creation Up: ReadWriteStream Forward: Rectangle   Top: GNU Smalltalk Library Reference Contents: Table of Contents Index: Class index About: About this document


This document was generated on August, 19 2010 using texi2html