public final class IndentingWriter extends FilterWriter
out| Constructor and Description |
|---|
IndentingWriter(Writer out,
int width)
Constructs a no-prefix instance.
|
IndentingWriter(Writer out,
int width,
String prefix)
Constructs an instance.
|
| 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 IndentingWriter(Writer out, int width, String prefix)
out - non-null; writer to send final output towidth - >= 0; the maximum output width (not including
prefix), or 0 for no maximumprefix - non-null; the prefix for each linepublic IndentingWriter(Writer out, int width)
out - non-null; writer to send final output towidth - >= 0; the maximum output width (not including
prefix), or 0 for no maximumpublic 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 © 2016. All Rights Reserved.