org.ipdr.ftp
Class Debug
java.lang.Object
org.ipdr.ftp.Debug
public class Debug
- extends java.lang.Object
This class is added to On and Off the functionality of print information on
console.This class can be called by other classes by passing an array of Int
type. The integers passed indicate the debug statements that should be
printed.
Field Summary |
static int |
DEBUG
|
protected static boolean |
debug_
|
static int |
ERROR
|
protected static boolean |
error_
|
static int |
INFO
|
protected static boolean |
info_
|
Constructor Summary |
Debug()
Constructor for Debug class |
Method Summary |
static void |
logLevel(int[] logLevel)
This method accepts the int array. |
static void |
write(int mode,
java.lang.String strToBeWritten)
This prints the message on the screen in case the type of message has
been enabled. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
info_
protected static boolean info_
debug_
protected static boolean debug_
error_
protected static boolean error_
INFO
public static final int INFO
- See Also:
- Constant Field Values
DEBUG
public static final int DEBUG
- See Also:
- Constant Field Values
ERROR
public static final int ERROR
- See Also:
- Constant Field Values
Debug
public Debug()
- Constructor for Debug class
write
public static void write(int mode,
java.lang.String strToBeWritten)
- This prints the message on the screen in case the type of message has
been enabled.
That is, the int for the type of message was sent in the int
array sent to logLevel method as parameter.
- Parameters:
mode
- indicating the type of messagestrToBeWritten
- The message to be printed.
logLevel
public static void logLevel(int[] logLevel)
- This method accepts the int array. The int values in the array indicate
the type of message that should be printed. All other type of messages
are ignored while printing.
- Parameters:
logLevel
- int array indicating the types of message that should be
printed.