water.util
Class IndentingAppender

java.lang.Object
  extended by water.util.IndentingAppender
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable, java.lang.Appendable

public class IndentingAppender
extends java.lang.Object
implements java.lang.Appendable, java.io.Flushable, java.io.Closeable


Constructor Summary
IndentingAppender(java.lang.Appendable base)
           
 
Method Summary
 IndentingAppender append(char c)
           
 IndentingAppender append(java.lang.CharSequence csq)
           
 IndentingAppender append(java.lang.CharSequence csq, int start, int end)
           
 IndentingAppender appendln(java.lang.CharSequence csq)
           
 void close()
           
 IndentingAppender decrementIndent()
           
 void flush()
           
 IndentingAppender incrementIndent()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndentingAppender

public IndentingAppender(java.lang.Appendable base)
Method Detail

incrementIndent

public IndentingAppender incrementIndent()

decrementIndent

public IndentingAppender decrementIndent()

appendln

public IndentingAppender appendln(java.lang.CharSequence csq)
                           throws java.io.IOException
Throws:
java.io.IOException

append

public IndentingAppender append(java.lang.CharSequence csq)
                         throws java.io.IOException
Specified by:
append in interface java.lang.Appendable
Throws:
java.io.IOException

append

public IndentingAppender append(java.lang.CharSequence csq,
                                int start,
                                int end)
                         throws java.io.IOException
Specified by:
append in interface java.lang.Appendable
Throws:
java.io.IOException

append

public IndentingAppender append(char c)
                         throws java.io.IOException
Specified by:
append in interface java.lang.Appendable
Throws:
java.io.IOException

flush

public void flush()
           throws java.io.IOException
Specified by:
flush in interface java.io.Flushable
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Specified by:
close in interface java.io.Closeable
Throws:
java.io.IOException