|
Class: DummyStream (in Comanche)
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
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
instance creation
-
on: aFile
-
Return a new DummyStream instance, ignoring the argument.
accessing
-
binary
-
do nothing
-
close
-
do nothing
-
nextInt32Put: arg
-
do nothing
-
nextNumber: cnt put: num
-
do nothing
-
nextPut: aByte
-
do nothing
-
nextPutAll: aByteArray
-
do nothing
-
nextStringPut: aString
-
do nothing
-
originalContents
-
-
position
-
Return any random number. Here is where the real lying begins. We are a DummyStream afterall. 8/17/96 tk
-
position: anOffset
-
Pretend to position wherever the caller says!
-
skip: aNumber
-
Do nothing.
-
subclassResponsibility
-
Do nothing. Most messages to class Stream are defined as subclassResponsibility. Just accept them. 8/17/96 tk
|