|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kth.dks.util.DKSPrint
public class DKSPrint
| Constructor Summary | |
|---|---|
DKSPrint()
|
|
| Method Summary | |
|---|---|
static void |
disableType(DKSPrintTypes type)
Disables logging for a group of log messages defined by the string argument. |
static void |
enableType(DKSPrintTypes type)
Enables logging for a group of log messages defined by the string argument. |
static java.io.Serializable |
getDebugInfo()
Get debug information. |
static void |
logLevel(int level)
Sets the logging level, 0 for no logging, 1 for printing of debug info that has been explicitly enabled, 2 for every thing, including XML dumps |
static java.lang.String |
prettyPrint(java.lang.String str)
Cuts the string if it is longer than MAXLEN=75 characters long |
static void |
print(DKSPrintTypes type,
byte data)
like Print with additional line feed |
static void |
print(DKSPrintTypes type,
char data)
like Print with additional line feed |
static void |
print(DKSPrintTypes type,
java.lang.String data)
Prints the data string, if the type of loginfo is enabled for printing. |
static void |
println_noType(DKSPrintTypes type,
java.lang.String data)
like Print with additional line feed. |
static void |
println(DKSPrintTypes type,
java.lang.String data)
like Print with additional line feed. |
static void |
printXML(byte[] arr,
boolean sending)
Prints a marshalled XML message |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DKSPrint()
| Method Detail |
|---|
public static void logLevel(int level)
level - intpublic static void enableType(DKSPrintTypes type)
type - the identfifier for the group of log infopublic static void disableType(DKSPrintTypes type)
type - the identfifier for the group of log info
public static void print(DKSPrintTypes type,
java.lang.String data)
type - type of loginfodata - String to be printed
public static void println(DKSPrintTypes type,
java.lang.String data)
Print with additional line feed.
Moreover, the type of loginfo is attached the output.
type - type of loginfodata - String to be printed
public static void println_noType(DKSPrintTypes type,
java.lang.String data)
Print with additional line feed.
data - String to be printed
public static void print(DKSPrintTypes type,
char data)
Print with additional line feed
data - char to be printed
public static void print(DKSPrintTypes type,
byte data)
Print with additional line feed
byte - char to be printed
public static void printXML(byte[] arr,
boolean sending)
arr - byte[] is the byte array to printsending - boolean indicates whether the messages is to be sent or receivedpublic static java.lang.String prettyPrint(java.lang.String str)
str - is the string to be pretty printed
public static java.io.Serializable getDebugInfo()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||