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.8 date: 2018/03/07 14:48:00
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  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

fileIn/Out
o  fileIn
(comment from inherited method)
file in from the receiver, i.e. read chunks and evaluate them -
return the value of the last chunk.



ST/X 7.1.0.0; WebServer 1.663 at exept.de:8081; Thu, 15 Nov 2018 12:23:39 GMT