|
Hilbert II - Version 0.03.04 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.qedeq.kernel.utility.TextOutput
Wraps a text output stream.
Constructor Summary | |
TextOutput(String name,
OutputStream output)
Constructor. |
|
TextOutput(String name,
PrintStream output)
Constructor. |
Method Summary | |
boolean |
checkError()
Did any error occur during output? |
void |
clearLevel()
Reset tab level to zero. |
void |
close()
Close output. |
void |
flush()
Close output. |
IOException |
getError()
Get IO exception that occurred - if any. |
String |
getName()
Get name of output file. |
void |
levelPrint(String text)
Print spaces and text to output. |
void |
levelPrintln(String line)
Print spaces, text and new line to output. |
void |
popLevel()
Decrement tab level. |
void |
print(Object object)
Print object to output. |
void |
print(String text)
Print text to output. |
void |
println()
Print new line to output. |
void |
println(Object object)
Print object and new line to output. |
void |
println(String line)
Print spaces text and new line to output. |
void |
pushLevel()
Increment tab level. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TextOutput(String name, PrintStream output)
name
- File name.output
- Write to this output.public TextOutput(String name, OutputStream output)
name
- File name.output
- Write to this output.Method Detail |
public void print(String text)
text
- Append this.public void levelPrint(String text)
text
- Append this.public void print(Object object)
object
- Append text representation of this.public final void println(String line)
line
- Append this.public final void levelPrintln(String line)
line
- Append this.public final void println(Object object)
object
- Append text representation of this.public final void println()
public final void flush()
public final void close()
public final void clearLevel()
public final void popLevel()
public final void pushLevel()
public final boolean checkError()
public final String getName()
public final IOException getError()
TODO mime 20070131: use something else than PrintStream to get better error support?
null
.
|
Hilbert II - Version 0.03.04 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
©left GNU General Public Licence All Rights Reserved. |