Hilbert II - Version 0.03.01

org.qedeq.kernel.utility
Class TextOutput

java.lang.Object
  extended byorg.qedeq.kernel.utility.TextOutput

public final class TextOutput
extends Object

Wraps a text output stream.

Version:
$Revision: 1.1 $

Constructor Summary
TextOutput(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 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

TextOutput

public TextOutput(PrintStream output)
Constructor.

Parameters:
output - Write to this output.
Method Detail

print

public void print(String text)
Print text to output.

Parameters:
text - Append this.

levelPrint

public void levelPrint(String text)
Print spaces and text to output.

Parameters:
text - Append this.

print

public void print(Object object)
Print object to output.

Parameters:
object - Append text representation of this.

println

public final void println(String line)
Print spaces text and new line to output.

Parameters:
line - Append this.

levelPrintln

public final void levelPrintln(String line)
Print spaces, text and new line to output.

Parameters:
line - Append this.

println

public final void println(Object object)
Print object and new line to output.

Parameters:
object - Append text representation of this.

println

public final void println()
Print new line to output.


close

public final void close()
Close output.


clearLevel

public final void clearLevel()
Reset tab level to zero.


popLevel

public final void popLevel()
Decrement tab level.


pushLevel

public final void pushLevel()
Increment tab level.


checkError

public boolean checkError()
Did any error occur during output?

Returns:
Did an error occur?

Hilbert II - Version 0.03.01

©left GNU General Public Licence
All Rights Reserved.