|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atomikos.diagnostics.PrintStreamConsole
public class PrintStreamConsole
A simple console to a PrintStream.
Field Summary | |
---|---|
protected PrintStream |
printstream_
|
Fields inherited from interface com.atomikos.diagnostics.Console |
---|
DEBUG, INFO, WARN |
Constructor Summary | |
---|---|
PrintStreamConsole(PrintStream printstream)
Constructor. |
Method Summary | |
---|---|
void |
close()
Closes the console after use. |
void |
finalize()
|
int |
getLevel()
Gets the level of the console. |
void |
print(String string)
Print a string to the output, but no newline at the end. |
void |
print(String string,
int level)
Print a string with a given level of granularity. |
void |
println(String string)
Print a message to the output of the console. |
void |
println(String string,
int level)
Print a string with newline, at a given level of granularity. |
void |
setLevel(int level)
Set the overall granularity level of the console. |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected PrintStream printstream_
Constructor Detail |
---|
public PrintStreamConsole(PrintStream printstream)
printstream
- The PrintStream to print to.Method Detail |
---|
public void println(String string) throws IOException
Console
println
in interface Console
string
- The message to output.
IOException
- On failure.Console
public void print(String string) throws IOException
Console
print
in interface Console
string
- The string to print.
IOException
- On failure.Console
public void close() throws IOException
Console
close
in interface Console
IOException
- On failure.Console
public void finalize() throws Throwable
finalize
in class Object
Throwable
public void println(String string, int level) throws IOException
Console
println
in interface Console
string
- The string.level
- The level (one of the predefined constants).
IOException
- On failure.public void print(String string, int level) throws IOException
Console
print
in interface Console
string
- The stringlevel
- The level (one of the predefined constants).
IOException
- On failure.public void setLevel(int level)
Console
setLevel
in interface Console
level
- The level, one of the predefined constants.
Default is WARN.public int getLevel()
Console
getLevel
in interface Console
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |