public class AutoIndentWriter
extends java.io.FilterWriter
FilterWriter
that automatically indents lines by looking at
trailing opening braces ('{') and leading closing braces ('}').Modifier and Type | Field and Description |
---|---|
static char |
CLEAR_TABULATORS |
static char |
INDENT |
static char |
TABULATOR |
static char |
UNINDENT |
Constructor and Description |
---|
AutoIndentWriter(java.io.Writer out) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
flush() |
void |
write(char[] cbuf,
int off,
int len) |
void |
write(int c) |
void |
write(java.lang.String str,
int off,
int len) |
public static final char TABULATOR
public static final char CLEAR_TABULATORS
public static final char INDENT
public static final char UNINDENT
public void write(char[] cbuf, int off, int len) throws java.io.IOException
write
in class java.io.FilterWriter
java.io.IOException
public void write(java.lang.String str, int off, int len) throws java.io.IOException
write
in class java.io.FilterWriter
java.io.IOException
public void write(int c) throws java.io.IOException
write
in class java.io.FilterWriter
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.FilterWriter
java.io.IOException
public void flush() throws java.io.IOException
flush
in interface java.io.Flushable
flush
in class java.io.FilterWriter
java.io.IOException