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.21 date: 2022/01/06 01:33: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 be filed in.
Its protocol is neither complete, nor fully compatible with the corresponding
squeak original class.

copyright

COPYRIGHT (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.

Class protocol:

instance creation
o  on: aCollection
cg: I will remove the asString soon...


Instance protocol:

accessing
o  name

o  name: aString

converting
o  readStream
polymorphic with SequenceableCollection. Return self

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

reading
o  next
(comment from inherited method)
return the next element; advance read position.
If there are no more elements, nil is returned.

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.

stream protocol
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
(comment from inherited method)
return true, if in binary mode.
Defined here to make internalStreams protocol compatible with externalStreams.

o  text

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

o  nextPutAll: aCollection
append all elements from aCollection into the receiver stream.
Answer the receiver



ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Thu, 21 Nov 2024 15:02:25 GMT