edu.unika.aifb.owltools
Class Printer

java.lang.Object
  extended by edu.unika.aifb.owltools.Printer

public class Printer
extends java.lang.Object

Printer offers static sinks for different kind of messages. Using this in a central place we can easily send the different kinds of output to different places. There is also an internal String based message sink.


Field Summary
 java.lang.String error
           
 boolean verbose
           
 java.io.PrintWriter writer
           
 
Constructor Summary
Printer()
           
 
Method Summary
 void close()
           
 void error(java.lang.String m)
          Used for error messages.
 java.lang.String getOutput()
           
 void print(java.lang.Object m)
          Used for usual messages, that actually are not part of the output.
 void put(java.lang.Object m)
          Used for the output of the program.
 void putline(java.lang.Object m)
          Used for the output of the program (ending the output with a new line).
 void setFile(java.lang.String filename)
           
 void setString()
           
 void verbose(java.lang.String m)
          Used for messages you usually wouldn't want to see.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

verbose

public boolean verbose

writer

public java.io.PrintWriter writer

error

public java.lang.String error
Constructor Detail

Printer

public Printer()
Method Detail

setFile

public void setFile(java.lang.String filename)

setString

public void setString()

getOutput

public java.lang.String getOutput()

close

public void close()

print

public void print(java.lang.Object m)
Used for usual messages, that actually are not part of the output.

Parameters:
m - the message

verbose

public void verbose(java.lang.String m)
Used for messages you usually wouldn't want to see.

Parameters:
m - the message

putline

public void putline(java.lang.Object m)
Used for the output of the program (ending the output with a new line).

Parameters:
m - the message

put

public void put(java.lang.Object m)
Used for the output of the program.

Parameters:
m - the message

error

public void error(java.lang.String m)
Used for error messages.

Parameters:
m - the message