|
Class: IndentStream
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
a write stream which keeps a current indent and
automatically emits the indent on every cr.
copyrightCOPYRIGHT (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.
instance creation
-
on: aCollection
-
(comment from inherited method)
return a new PositionableStream streaming on aCollection
-
with: aCollection
-
(comment from inherited method)
return a new PositionableStream streaming on aCollection,
the stream is positioned to the end of the collection.
accessing
-
indentLevel
-
the current indent
-
indentString: aString
-
the string to use for indentation.
If left unset, a tab is used
indentation
-
indent
-
-
indentBack
-
initialization
-
initialize
-
(comment from inherited method)
just to ignore initialize to objects which do not need it
writing
-
cr
-
(comment from inherited method)
append a carriage-return to the stream.
This is only allowed, if the receiver supports writing.
-
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.
-
putIndent
-
original
|