water.util
Class IndentingAppender
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IndentingAppender
public IndentingAppender(java.lang.Appendable base)
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