|
||||||||||
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.moesol.generator.core.IndentPrintWriter
public class IndentPrintWriter
Field Summary | |
---|---|
protected int |
m_indent
Current indent level. |
protected int |
m_indentSize
Number of spaces to print for each indent level. |
Fields inherited from class java.io.PrintWriter |
---|
out |
Fields inherited from class java.io.Writer |
---|
lock |
Constructor Summary | |
---|---|
IndentPrintWriter(OutputStream os)
|
|
IndentPrintWriter(Writer w)
|
Method Summary | |
---|---|
int |
getIndentSize()
|
void |
indent()
Increases the indent level. |
void |
outdent()
Decreases the indent level. |
void |
printdent()
Prints the spaces needed for the current indent level. |
void |
quote(String s)
Prints quotes around a string |
void |
setIndentSize(int i)
Sets how many spaces each indent level will be. |
Methods inherited from class java.io.PrintWriter |
---|
append, append, append, append, append, append, 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, 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 |
Field Detail |
---|
protected int m_indentSize
protected int m_indent
Constructor Detail |
---|
public IndentPrintWriter(OutputStream os)
public IndentPrintWriter(Writer w)
Method Detail |
---|
public void setIndentSize(int i)
i
- new indent level.public int getIndentSize()
public void indent()
public void outdent()
public void printdent()
public void quote(String s)
s
- String to be quoted.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |