|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jmlspecs.jmlunit.FancyTabbedPrintWriter
A more convenient print writer.
| Field Summary | |
private int |
pos
The column number where the next text should be written by the writer. |
private int |
tabSize
The depth of indentation. |
private TabbedPrintWriter |
writer
The writer to which the output is to be printed. |
| Constructor Summary | |
FancyTabbedPrintWriter(Writer writer)
Initialize this fancy tabbed print writer. |
|
FancyTabbedPrintWriter(Writer writer,
int tabSize)
Initialize this fancy tabbed print writer. |
|
| Method Summary | |
void |
close()
Close this file. |
void |
indent()
Indents one TAB_SIZE. |
void |
newLine()
Prints a line separator. |
void |
print(Object s)
Prints the given object. |
void |
print(String s)
Prints the given string. |
void |
println(Object s)
Prints the given object with a trailing line separator. |
void |
printlnIn(Object s)
Prints the given object with one tabSize indentation and a trailing line separator. |
void |
setTabSize(int n)
Set the tab size to the given integer. |
void |
undent()
Und-ndents one tabSize. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private TabbedPrintWriter writer
private int tabSize
private invariant_redundantly tabSize > 0;
private int pos
private invariant pos >= 0;
| Constructor Detail |
public FancyTabbedPrintWriter(Writer writer)
public FancyTabbedPrintWriter(Writer writer,
int tabSize)
| Method Detail |
public void indent()
public void undent()
public void print(Object s)
public void print(String s)
public void println(Object s)
public void printlnIn(Object s)
public void newLine()
public void setTabSize(int n)
public void close()
|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||