com.vwp.sound.mod.util.io
Class IndentingWriter
java.lang.Object
java.io.Writer
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
IndentingWriter
public IndentingWriter(Writer writer)
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()