|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.Writer java.io.PrintWriter com.softsynth.util.IndentingWriter
public class IndentingWriter
Write to a file with indentation at the beginning of a line. One advantage of using a PrintWriter is that it automatically handles line terminators properly on different hosts.
Constructor Summary | |
---|---|
IndentingWriter(java.io.OutputStream stream)
|
Method Summary | |
---|---|
int |
getIndentation()
|
void |
indent()
Increase level of indentation by one. |
void |
print(java.lang.String s)
Print string. |
void |
println()
|
void |
println(java.lang.String s)
|
void |
setIndentation(int level)
|
void |
undent()
Decrease level of indentation by one. |
Methods inherited from class java.io.PrintWriter |
---|
append, append, append, checkError, close, flush, format, format, print, print, print, print, print, print, print, print, printf, printf, println, println, println, println, println, println, println, println, write, write, write, write, write |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IndentingWriter(java.io.OutputStream stream)
Method Detail |
---|
public void setIndentation(int level)
public int getIndentation()
public void indent()
public void undent()
public void print(java.lang.String s)
print
in class java.io.PrintWriter
public void println()
println
in class java.io.PrintWriter
public void println(java.lang.String s)
println
in class java.io.PrintWriter
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |