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.2 date: 2018/07/26 21:30:14
user: lukas
file: IndentStream.st directory: libbasic2
module: stx stc-classLibrary: libbasic2
Author:
Claus Gittinger (ported from Squeak)

Description:


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


Class protocol:

instance creation
o  on: aCollection

o  with: aCollection


Instance protocol:

accessing
o  indentLevel
the current indent

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

character 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

o  putIndent
original

indentation
o  indent

o  indentBack

initialization
o  initialize



ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Fri, 26 Apr 2024 03:19:06 GMT