|
Smalltalk/X WebserverDocumentation of class 'ReadWriteStream': |
|
|
Class: ReadWriteStreamInheritance:Object | +--Stream | +--PeekableStream | +--PositionableStream | +--WriteStream | +--ReadWriteStream | +--ExternalStream
Description:
ReadWriteStreams allow both read- and write-access to some collection.
To allow this, they reenable some methods blocked in WriteStream.
(being one of the seldom places, where multiple inheritance could be
of good use in smalltalk).
Claus:
I personally find the ReadStream - WriteStream - ReadWriteStream
organization brain-damaged. It would be better to have an attribute
(such as readOnly / writeOnly / readWrite) in an InternalStream subclass
of Stream ...
Instance protocol:access-reading
Examples:|s| s := ReadWriteStream with:'abcd'. s reset. s nextPut:$A. s contents |
|
|
ST/X 6.1.1; WebServer 1.620 at exept:8081; Wed, 23 May 2012 20:50:52 GMT
|