public class IndentWriter extends Object
Constructor and Description |
---|
IndentWriter(PrintWriter writer,
int startIndent,
int deltaIndent)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
void |
decrIndent()
Decrease the indentation one level.
|
void |
incrIndent()
Increase the indentation one level.
|
void |
println(String text)
Print text to the underlying writer.
|
public IndentWriter(PrintWriter writer, int startIndent, int deltaIndent)
writer
- to output tostartIndent
- is the depth of indent to startdeltaIndent
- is the number of characters to indent for every incrIndent() callpublic void incrIndent()
public void decrIndent()
public void println(String text)
text
- to printCopyright © 2005–2018. All rights reserved.