public class AutoIndentWriter extends 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 |
out
Constructor and Description |
---|
AutoIndentWriter(Writer out) |
public static final char TABULATOR
public static final char CLEAR_TABULATORS
public static final char INDENT
public static final char UNINDENT
public AutoIndentWriter(Writer out)
public void write(char[] cbuf, int off, int len) throws IOException
write
in class FilterWriter
IOException
public void write(String str, int off, int len) throws IOException
write
in class FilterWriter
IOException
public void write(int c) throws IOException
write
in class FilterWriter
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class FilterWriter
IOException
public void flush() throws IOException
flush
in interface Flushable
flush
in class FilterWriter
IOException
Copyright © 2001–2013. All rights reserved.