eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'Comanche::DummyStream':

Home

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

Class: DummyStream (in Comanche)


Inheritance:

   Object
   |
   +--Stream
      |
      +--Comanche::DummyStream

Package:
stx:goodies/webServer/comanche/swiki
Category:
Comanche-Swiki-Squeak-Classes
Version:
rev: 1.7 date: 2003/08/29 17:04:59
user: cg
file: DummyStream.st directory: goodies/webServer/comanche/swiki
module: stx stc-classLibrary: swiki

Description:


The purpose of this class is to absorb all steam messages and do nothing.  This is so ReferenceStream can pretend to write on it while traversing all objects it would normally write.  We need to know what those object are.  8/17/96 tk


Class protocol:

instance creation
o  on: aFile
Return a new DummyStream instance, ignoring the argument.


Instance protocol:

accessing
o  binary
do nothing

o  close
do nothing

o  nextInt32Put: arg
do nothing

o  nextNumber: cnt put: num
do nothing

o  nextPut: aByte
do nothing

o  nextPutAll: aByteArray
do nothing

o  nextStringPut: aString
do nothing

o  originalContents

o  position
Return any random number. Here is where the real lying begins. We are a DummyStream afterall. 8/17/96 tk

o  position: anOffset
Pretend to position wherever the caller says!

o  skip: aNumber
Do nothing.

o  subclassResponsibility
Do nothing. Most messages to class Stream are defined as subclassResponsibility. Just accept them. 8/17/96 tk



ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Tue, 19 Mar 2024 03:51:17 GMT