eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'SourceCodeStream':

Home

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

Class: SourceCodeStream


Inheritance:

   Object
   |
   +--Stream
      |
      +--SourceCodeStream

Package:
stx:libcompat
Category:
Compatibility-ST80
Version:
rev: 1.5 date: 2011/10/01 11:06:25
user: vrany
file: SourceCodeStream.st directory: libcompat
module: stx stc-classLibrary: libcompat

Description:


Enough to support the SourceCodeSaver PD goody ....


ST-80 compatibility class.
This may be required when existing code has to be ported to ST/X;
however, it may not be complete and more protocol may be added in the future.
The code here was created when public domain code (Manchester) had to
be ported to ST/X and missing classes/methods were encountered, and code added
by reasoning 'what the original class could probably do there'.

This is currently not used by ST/X itself.

This is an additional goody class; therefore:

THIS SOFTWARE IS PROVIDED BY THE CONTRIBUTOR ``AS IS'' AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED.  IN NO EVENT SHALL THE CONTRIBUTOR BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.


Class protocol:

instance creation
o  on: aStream


Instance protocol:

accessing
o  files
return the value of the instance variable 'files' (automatically generated)

o  files: something
set the value of the instance variable 'files' (automatically generated)

o  targetFile

fileOut
o  fileOutMessages: collectionOfMessageSelectors for: aClass

misc
o  timeStamp

stream messages
o  cr
(comment from inherited method)
append a carriage-return to the stream.
This is only allowed, if the receiver supports writing.

o  nextChunkPut: someString
(comment from inherited method)
put aString as a chunk onto the receiver;
double all exclamation marks except within primitives and append a
single delimiting exclamation mark at the end.
This modification of the chunk format (not doubling exclas in primitive code)
was done to have primitive code more readable and easier be edited in the fileBrowser
or other editors.
It's no incompatibility, since inline primitives are an ST/X special
and code containing ST/X primitives cannot be loaded into other smalltalks anyway.

o  nextPut: aCharacter
(comment from inherited method)
put the argument, anObject onto the receiver
- we do not know here how to do it, it must be redefined in subclass

o  nextPutAll: aCollection
(comment from inherited method)
put all elements of the argument, aCollection onto the receiver.
This is only allowed, if the receiver supports writing.

o  nextPutAllAsChunk: someString
(comment from inherited method)
put aString as a chunk onto the receiver;
double all exclamation marks except within primitives.
This modification of the chunk format (not doubling exclas in primitive code)
was done to have primitive code more readable and easier be edited in the fileBrowser
or other editors.
It's no incompatibility, since inline primitives are an ST/X special
and code containing ST/X primitives cannot be loaded into other smalltalks anyway.

o  nextPutChunkSeparator
(comment from inherited method)
append a chunk separator character

o  space
(comment from inherited method)
append a space character to the receiver.
This is only allowed, if the receiver supports writing.



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