eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'RWBinaryOrTextStream':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: RWBinaryOrTextStream


Inheritance:

   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

Description:


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.


Class protocol:

Instance Creation
o  on: aCollection


Instance protocol:

Adding
o  nextPut: charOrByte

o  nextPutAll: aCollection

Positioning
o  reset
Set the receiver's position to the beginning of the sequence of objects.

accessing
o  ascii

o  binary

o  binary: beBinaryBool
ExternalStream protocol compatibility:
switch to binary or text mode - default is text

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

o  isBinary

o  name

o  name: aString

o  next

o  next: count
Returns the next count elements in the receiver's collection.

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

o  next: anInteger putAll: aCollection startingAt: startIndex
Store the next anInteger elements from the given collection.

o  text

converting
o  readStream
polymorphic with SequenceableCollection. Return self



ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Thu, 28 Mar 2024 12:07:31 GMT