|
FreeHEP API Version current |
|||||||||
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 org.freehep.util.io.IndentPrintWriter
A PrintWriter that keeps track of an indentation level and indents the output appropriately.
Field Summary |
Fields inherited from class java.io.PrintWriter |
out |
Fields inherited from class java.io.Writer |
lock |
Constructor Summary | |
IndentPrintWriter(Writer w)
|
|
IndentPrintWriter(Writer w,
int level)
|
Method Summary | |
int |
getIndent()
Return the current indent count |
String |
getIndentString()
Return the current indentString |
void |
indent()
Increase the indentation |
void |
outdent()
Decrease the indentation |
void |
print(boolean s)
|
void |
print(char s)
|
void |
print(char[] s)
|
void |
print(double s)
|
void |
print(float s)
|
void |
print(int s)
|
void |
print(long s)
|
void |
print(Object s)
|
void |
print(String s)
|
void |
println()
|
void |
setIndent(int level)
Set the current indent count |
void |
setIndentString(String indentString)
Set the current indentString. |
Methods inherited from class java.io.PrintWriter |
checkError, close, flush, println, println, println, println, println, println, println, println, println, setError, write, write, write, write, write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public IndentPrintWriter(Writer w, int level)
public IndentPrintWriter(Writer w)
Method Detail |
public void print(boolean s)
public void print(char s)
public void print(char[] s)
public void print(double s)
public void print(float s)
public void print(int s)
public void print(long s)
public void print(Object s)
public void print(String s)
public void println()
public void indent()
public void outdent()
public int getIndent()
public void setIndent(int level)
public String getIndentString()
setIndentString(String)
public void setIndentString(String indentString)
indentString
- The characters to prefix each line with (repeated for each indent level)
|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |