|
Class: RWBinaryOrTextStream
Object
|
+--Stream
|
+--PeekableStream
|
+--PositionableStream
|
+--WriteStream
|
+--ReadWriteStream
|
+--RWBinaryOrTextStream
|
+--DataStream
- Package:
- stx:libcompat
- Category:
- Compatibility-Squeak
- Version:
- rev:
1.21
date: 2022/01/06 01:33: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 be filed in.
Its protocol is neither complete, nor fully compatible with the corresponding
squeak original class.
copyrightCOPYRIGHT (c) 2011 by eXept Software AG
All Rights Reserved
This software is furnished under a license and may be used
only in accordance with the terms of that license and with the
inclusion of the above copyright notice. This software may not
be provided or otherwise made available to, or used by, any
other person. No title to or ownership of the software is
hereby transferred.
instance creation
-
on: aCollection
-
cg: I will remove the asString soon...
accessing
-
name
-
-
name: aString
-
converting
-
readStream
-
polymorphic with SequenceableCollection. Return self
positioning
-
reset
-
Set the receiver's position to the beginning of the sequence of objects.
reading
-
next
-
(comment from inherited method)
return the next element; advance read position.
If there are no more elements, nil is returned.
-
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.
stream protocol
-
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
-
(comment from inherited method)
return true, if in binary mode.
Defined here to make internalStreams protocol compatible with externalStreams.
-
text
-
writing
-
nextPut: charOrByte
-
(comment from inherited method)
append the argument, anObject to the stream.
Answer the argument.
Specially tuned for appending to String, ByteArray and Array streams.
-
nextPutAll: aCollection
-
append all elements from aCollection into the receiver stream.
Answer the receiver
|