public class IndentPrinter
extends java.lang.Object
implements java.lang.AutoCloseable
| Constructor and Description |
|---|
IndentPrinter(java.lang.String indentation,
java.io.Writer writer) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
decrement() |
void |
increment() |
void |
print(java.lang.String str) |
void |
printIndent() |
void |
println() |
void |
println(java.lang.String line) |
void |
write(char character) |
void |
write(char[] chars) |
public IndentPrinter(java.lang.String indentation,
java.io.Writer writer)
public void increment()
public void decrement()
public void printIndent()
throws java.io.IOException
java.io.IOExceptionpublic void println()
throws java.io.IOException
java.io.IOExceptionpublic void println(java.lang.String line)
throws java.io.IOException
java.io.IOExceptionpublic void print(java.lang.String str)
throws java.io.IOException
java.io.IOExceptionpublic void write(char character)
throws java.io.IOException
java.io.IOExceptionpublic void write(char[] chars)
throws java.io.IOException
java.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.lang.AutoCloseablejava.io.IOException