|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.multijava.dis.IndentingWriter
This class allows indented output
| Field Summary | |
private int |
level
|
private PrintWriter |
out
|
private static String |
TAB
|
| Constructor Summary | |
IndentingWriter(PrintWriter out)
Creates a new indenting writer. |
|
| Method Summary | |
void |
decrementLevel()
Decrements the indentation level. |
void |
incrementLevel()
Increments the indentation level. |
void |
print(int value)
Prints an integer. |
void |
print(String value)
Prints a string. |
void |
println()
Terminates the current line by writing the line separator string and moving to the current indentation level. |
void |
println(String str)
Prints a string and then terminates the line. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static final String TAB
private PrintWriter out
private int level
| Constructor Detail |
public IndentingWriter(PrintWriter out)
out - the print writer to writer to| Method Detail |
public void incrementLevel()
public void decrementLevel()
public void print(String value)
value - the string to printpublic void print(int value)
value - the integer to printpublic void println()
public void println(String str)
str - the string to print
|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||