public final class IndentingWriter
extends java.io.FilterWriter
| Constructor and Description |
|---|
IndentingWriter(java.io.Writer out,
int width)
Constructs a no-prefix instance.
|
IndentingWriter(java.io.Writer out,
int width,
java.lang.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(java.lang.String str,
int off,
int len) |
public IndentingWriter(java.io.Writer out,
int width,
java.lang.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(java.io.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 java.io.IOException
write in class java.io.FilterWriterjava.io.IOExceptionpublic void write(char[] cbuf,
int off,
int len)
throws java.io.IOException
write in class java.io.FilterWriterjava.io.IOExceptionpublic void write(java.lang.String str,
int off,
int len)
throws java.io.IOException
write in class java.io.FilterWriterjava.io.IOExceptionCopyright © 2020. All Rights Reserved.