|
|||||||||
| Home >> All >> openjava >> [ tools overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
openjava.tools
Class DebugOut

java.lang.Objectopenjava.tools.DebugOut
- public final class DebugOut
- extends java.lang.Object
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.
- Since:
- JDK1.1
- Version:
- 1.0a1, 98/04/10
| Field Summary | |
private static int |
debugLevel
|
protected static java.io.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 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(java.lang.Object obj)
Print an object. |
static void |
print(java.lang.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(java.lang.Object x)
Print an Object, and then finish the line. |
static void |
println(java.lang.String x)
Print a String, and then finish the line. |
static void |
setDebugLevel(int level)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
debugLevel
private static int debugLevel
out
protected static java.io.PrintStream out
- for debug
| Constructor Detail |
DebugOut
public DebugOut()
| Method Detail |
setDebugLevel
public static void setDebugLevel(int level)
flush
public static void flush()
- Flush the stream.
close
public static void close()
- Close the stream.
checkError
public static boolean checkError()
- Flush the stream and check its error state. Errors are cumulative;
once the stream encounters an error, this routine will return true on
all successive calls.
public static void print(boolean b)
- Print a boolean.
public static void print(char c)
- Print a character.
public static void print(int i)
- Print an integer.
public static void print(long l)
- Print a long.
public static void print(float f)
- Print a float.
public static void print(double d)
- Print a double.
public static void print(char[] s)
- Print an array of chracters.
public static void print(java.lang.String s)
- Print a String.
public static void print(java.lang.Object obj)
- Print an object.
println
public static void println()
- Finish the line.
println
public static void println(boolean x)
- Print a boolean, and then finish the line.
println
public static void println(char x)
- Print a character, and then finish the line.
println
public static void println(int x)
- Print an integer, and then finish the line.
println
public static void println(long x)
- Print a long, and then finish the line.
println
public static void println(float x)
- Print a float, and then finish the line.
println
public static void println(double x)
- Print a double, and then finish the line.
println
public static void println(char[] x)
- Print an array of characters, and then finish the line.
println
public static void println(java.lang.String x)
- Print a String, and then finish the line.
println
public static void println(java.lang.Object x)
- Print an Object, and then finish the line.
|
|||||||||
| Home >> All >> openjava >> [ tools overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
openjava.tools.DebugOut