|
Class: RWBinaryOrTextStream
Object
|
+--Stream
|
+--PeekableStream
|
+--PositionableStream
|
+--WriteStream
|
+--ReadWriteStream
|
+--RWBinaryOrTextStream
|
+--DataStream
- Package:
- stx:libcompat
- Category:
- Compatibility-Squeak
- Version:
- rev:
1.10
date: 2019/07/31 15:38:24
- user: cg
- file: RWBinaryOrTextStream.st directory: libcompat
- module: stx stc-classLibrary: libcompat
DO NOT DIRECTLY REFER TO THIS CLASS OR USE IT OTHERWISE IN YOUR CODE:
This is a dummy, mimicry class to allow some squeak code to access
UserPreferences.
Its protocol is neither complete, nor fully compatible with the corresponding
squeak original class.
Instance Creation
-
on: aCollection
-
Adding
-
nextPut: charOrByte
-
-
nextPutAll: aCollection
-
Positioning
-
reset
-
Set the receiver's position to the beginning of the sequence of objects.
accessing
-
ascii
-
-
binary
-
-
binary: beBinaryBool
-
ExternalStream protocol compatibility:
switch to binary or text mode - default is text
-
contents
-
(comment from inherited method)
return the contents as written so far;
redefined to prevent confusion resulting due to
my superclasses optimization. (see WriteStream contents).
ST80 users of ReadWriteStream may expect the contents array to remain
unchanged, which we do not guarantee.
-
isBinary
-
-
name
-
-
name: aString
-
-
next
-
-
next: count
-
Returns the next count elements in the receiver's collection.
-
next: n into: aCollection startingAt: startIndex
-
Read n objects into the given collection.
Return aCollection or a partial copy if less than
n elements have been read.
-
next: anInteger putAll: aCollection startingAt: startIndex
-
Store the next anInteger elements from the given collection.
-
text
-
converting
-
readStream
-
polymorphic with SequenceableCollection. Return self
|