com.vwp.sound.mod.util.io
Class IndentingWriter

java.lang.Object
  extended by java.io.Writer
      extended by com.vwp.sound.mod.util.io.IndentingWriter
All Implemented Interfaces:
Closeable, Flushable, Appendable

public class IndentingWriter
extends Writer

a writer that support indentation

Author:
torkjel

Constructor Summary
IndentingWriter(Writer writer)
           
 
Method Summary
 void close()
           
 void flush()
           
 void indent()
           
 void unindent()
           
 void write(char[] cbuf, int off, int len)
           
 void writeln()
           
 void writeln(String str)
           
 void writeRaw(String data)
           
 
Methods inherited from class java.io.Writer
append, append, append, append, append, append, write, write, write, write
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndentingWriter

public IndentingWriter(Writer writer)
Method Detail

write

public void write(char[] cbuf,
                  int off,
                  int len)
           throws IOException
Specified by:
write in class Writer
Throws:
IOException

writeln

public void writeln()
             throws IOException
Throws:
IOException

writeln

public void writeln(String str)
             throws IOException
Throws:
IOException

writeRaw

public void writeRaw(String data)
              throws IOException
Throws:
IOException

flush

public void flush()
           throws IOException
Specified by:
flush in interface Flushable
Specified by:
flush in class Writer
Throws:
IOException

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Specified by:
close in class Writer
Throws:
IOException

indent

public void indent()

unindent

public void unindent()