public class IndentingWriter extends PrintWriter
PrintWriter
with a little additional capability.
Specifically,
out
Constructor and Description |
---|
IndentingWriter(Writer out) |
IndentingWriter(Writer out,
boolean autoFlush) |
Modifier and Type | Method and Description |
---|---|
void |
beginCommaMode()
Starts the comma-separated token mode.
|
void |
beginJavaDocMode() |
void |
cancel() |
void |
comma()
Prints out ',' if something was printed since
the last invocation of
comma() or beginCommaMode() . |
void |
commit() |
void |
endCommaMode()
Ends the comma-separated token mode.
|
void |
endJavaDocMode() |
void |
in()
Increases the indentation level.
|
void |
out()
Decreases the indentation level.
|
void |
printJavadoc(String doc) |
void |
println() |
void |
startBuffering() |
void |
write(char[] buf,
int off,
int len) |
void |
write(int c) |
void |
write(String s,
int off,
int len) |
append, append, append, checkError, clearError, close, flush, format, format, print, print, print, print, print, print, print, print, print, printf, printf, println, println, println, println, println, println, println, println, println, setError, write, write
public IndentingWriter(Writer out)
public IndentingWriter(Writer out, boolean autoFlush)
public void startBuffering()
public void cancel()
public void commit()
public void in()
public void out()
public void beginCommaMode()
public void endCommaMode()
public void comma()
comma()
or beginCommaMode()
.public void beginJavaDocMode()
public void endJavaDocMode()
public void println()
println
in class PrintWriter
public void write(int c)
write
in class PrintWriter
public void write(char[] buf, int off, int len)
write
in class PrintWriter
public void write(String s, int off, int len)
write
in class PrintWriter
public void printJavadoc(String doc)
Copyright © 2014. All rights reserved.