Class IndentWriter

java.lang.Object
com.espertech.esper.common.internal.util.IndentWriter

public class IndentWriter extends Object
Writer that uses an underlying PrintWriter to indent output text for easy reading.
  • Constructor Details

    • IndentWriter

      public IndentWriter(PrintWriter writer, int startIndent, int deltaIndent)
      Ctor.
      Parameters:
      writer - to output to
      startIndent - is the depth of indent to start
      deltaIndent - is the number of characters to indent for every incrIndent() call
  • Method Details

    • incrIndent

      public void incrIndent()
      Increase the indentation one level.
    • decrIndent

      public void decrIndent()
      Decrease the indentation one level.
    • println

      public void println(String text)
      Print text to the underlying writer.
      Parameters:
      text - to print