com.espertech.esper.util
Class IndentWriter

java.lang.Object
  extended by com.espertech.esper.util.IndentWriter

public class IndentWriter
extends java.lang.Object

Writer that uses an underlying PrintWriter to indent output text for easy reading.


Constructor Summary
IndentWriter(java.io.PrintWriter writer, int startIndent, int deltaIndent)
          Ctor.
 
Method Summary
 void decrIndent()
          Decrease the indentation one level.
 void incrIndent()
          Increase the indentation one level.
 void println(java.lang.String text)
          Print text to the underlying writer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndentWriter

public IndentWriter(java.io.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 Detail

incrIndent

public void incrIndent()
Increase the indentation one level.


decrIndent

public void decrIndent()
Decrease the indentation one level.


println

public void println(java.lang.String text)
Print text to the underlying writer.

Parameters:
text - to print

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com