eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'IndentStream':

Home

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

Class: IndentStream


Inheritance:

   Object
   |
   +--Stream
      |
      +--PeekableStream
         |
         +--PositionableStream
            |
            +--WriteStream
               |
               +--IndentStream

Package:
stx:libbasic2
Category:
Streams-Misc
Version:
rev: 1.5 date: 2021/01/20 15:47:02
user: cg
file: IndentStream.st directory: libbasic2
module: stx stc-classLibrary: libbasic2

Description:


a write stream which keeps a current indent and
automatically emits the indent on every cr.

copyright

COPYRIGHT (c) 2018 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
(comment from inherited method)
return a new PositionableStream streaming on aCollection

o  with: aCollection
(comment from inherited method)
return a new PositionableStream streaming on aCollection,
the stream is positioned to the end of the collection.


Instance protocol:

accessing
o  indentLevel
the current indent

o  indentString: aString
the string to use for indentation.
If left unset, a tab is used

indentation
o  indent

o  indentBack

initialization
o  initialize
(comment from inherited method)
just to ignore initialize to objects which do not need it

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

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

o  putIndent
original



ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Sat, 27 Jul 2024 02:43:30 GMT