|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--openjava.tools.DebugOut
The DebugOut class is used to print something in debugging. No instance should be allocate and this class should be used statically.
This class implements most methods of public printing methods found in java.io.PrintWriter, as static methods.
NonLeaf
Field Summary | |
private static int |
debugLevel
|
protected static PrintStream |
out
for debug |
Constructor Summary | |
DebugOut()
|
Method Summary | |
static boolean |
checkError()
Flush the stream and check its error state. |
static void |
close()
Close the stream. |
static void |
flush()
Flush the stream. |
static int |
getDebugLevel()
|
static PrintStream |
getStream()
Returns the output stream. |
static void |
print(boolean b)
Print a boolean. |
static void |
print(char c)
Print a character. |
static void |
print(char[] s)
Print an array of chracters. |
static void |
print(double d)
Print a double. |
static void |
print(float f)
Print a float. |
static void |
print(int i)
Print an integer. |
static void |
print(long l)
Print a long. |
static void |
print(Object obj)
Print an object. |
static void |
print(String s)
Print a String. |
static void |
println()
Finish the line. |
static void |
println(boolean x)
Print a boolean, and then finish the line. |
static void |
println(char x)
Print a character, and then finish the line. |
static void |
println(char[] x)
Print an array of characters, and then finish the line. |
static void |
println(double x)
Print a double, and then finish the line. |
static void |
println(float x)
Print a float, and then finish the line. |
static void |
println(int x)
Print an integer, and then finish the line. |
static void |
println(long x)
Print a long, and then finish the line. |
static void |
println(Object x)
Print an Object, and then finish the line. |
static void |
println(String x)
Print a String, and then finish the line. |
static void |
setDebugLevel(int level)
|
static void |
setDebugOut(PrintStream ps)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static int debugLevel
protected static PrintStream out
Constructor Detail |
public DebugOut()
Method Detail |
public static void setDebugLevel(int level)
public static int getDebugLevel()
public static void setDebugOut(PrintStream ps)
public static PrintStream getStream()
debugLevel
(perhaps based upon other, more
specific, properties).
public static void flush()
public static void close()
public static boolean checkError()
public static void print(boolean b)
public static void print(char c)
public static void print(int i)
public static void print(long l)
public static void print(float f)
public static void print(double d)
public static void print(char[] s)
public static void print(String s)
public static void print(Object obj)
public static void println()
public static void println(boolean x)
public static void println(char x)
public static void println(int x)
public static void println(long x)
public static void println(float x)
public static void println(double x)
public static void println(char[] x)
public static void println(String x)
public static void println(Object x)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |