public class XMLFormatterWriter extends FilterWriter
FilterWriter scans the character stream for tags and inserts "artificial" line breaks as follows:
<a><b
</a><b
<a/><b
</a></b
<a/></b
out| Constructor and Description |
|---|
XMLFormatterWriter(Writer out) |
| Modifier and Type | Method and Description |
|---|---|
void |
write(char[] cbuf,
int off,
int len) |
void |
write(int c) |
void |
write(String str,
int off,
int len) |
close, flushpublic XMLFormatterWriter(Writer out)
XMLFormatterWriterpublic void write(int c)
throws IOException
write in class FilterWriterIOExceptionpublic void write(char[] cbuf,
int off,
int len)
throws IOException
write in class FilterWriterIOExceptionpublic void write(String str, int off, int len) throws IOException
write in class FilterWriterIOExceptionCopyright © 2018 Arno Unkrig. All rights reserved.