|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.unika.aifb.owltools.Printer
public class Printer
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 |
---|
public boolean verbose
public java.io.PrintWriter writer
public java.lang.String error
Constructor Detail |
---|
public Printer()
Method Detail |
---|
public void setFile(java.lang.String filename)
public void setString()
public java.lang.String getOutput()
public void close()
public void print(java.lang.Object m)
m
- the messagepublic void verbose(java.lang.String m)
m
- the messagepublic void putline(java.lang.Object m)
m
- the messagepublic void put(java.lang.Object m)
m
- the messagepublic void error(java.lang.String m)
m
- the message
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |