Class IndentingPrintStream

java.lang.Object
se.liu.ida.hefquin.base.utils.IndentingPrintStream

public class IndentingPrintStream extends Object
Wraps a PrintStream and adds functionality to print with different levels of indentation.
  • Field Details

    • out

      protected final PrintStream out
    • indentLevel

      protected int indentLevel
  • Constructor Details

    • IndentingPrintStream

      public IndentingPrintStream(PrintStream out)
  • Method Details

    • increaseIndentationLevel

      public void increaseIndentationLevel()
    • decreaseIndentationLevel

      public void decreaseIndentationLevel()
    • appendIndentation

      public void appendIndentation()
    • append

      public void append(String s)
    • flush

      public void flush()