public class PrettyWriter extends Writer
| Modifier and Type | Field and Description |
|---|---|
int |
indentLevel |
Writer |
writer |
| Constructor and Description |
|---|
PrettyWriter() |
PrettyWriter(Writer wrapped) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
String |
toString() |
static String |
toString(Renderable component)
Answer a pretty formatted HTML output for a Renderable component.
|
void |
write(char[] cbuf,
int off,
int len) |
public Writer writer
public int indentLevel
public PrettyWriter()
public PrettyWriter(Writer wrapped)
public static String toString(Renderable component)
component - public void write(char[] cbuf,
int off,
int len)
throws IOException
write in class WriterIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class WriterIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class WriterIOExceptionCopyright © 2010–2018. All rights reserved.