|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.upenn.gloDB.GloDBUtils
public class GloDBUtils
GloDBUtils. Miscellaneous functions.
Field Summary | |
---|---|
static int |
ERROR
|
static int |
FEATURE
|
static int |
FEEDBACK
|
static javax.swing.JTextArea |
guiMessages
If not null, all error and warning messages will be sent here. |
private static boolean |
IGNORE_ATTRIBUTES
This flag is used in FeatureUtils.compareFeatures() to compare two Features. |
static int |
SEQUENCE
|
static int |
TRACK
|
private static int |
VERBOSE
Amount of detailed feedback: 2 = lots, 1 = no warnings, 0 = no feedback. |
static int |
WARNING
|
Constructor Summary | |
---|---|
GloDBUtils()
|
Method Summary | |
---|---|
static byte[] |
compressString(java.lang.String val)
|
static java.lang.String |
convertConstant(int val)
Convert from the integer constant value to a string equivalent. |
static java.lang.String |
getClassName(java.lang.Object o)
Get the class name without any package info. |
static int |
getVerbose()
Get the VERBOSE flag. |
static boolean |
ignoreAttributes()
Get the IGNORE_ATTRIBUTES flag. |
static boolean |
isEmpty(java.lang.String str)
Returns true if 'str' is empty (ignores spaces) or null. |
static void |
printError(java.lang.String msg)
Display the error message to either the gui or stderr. |
static void |
printMsg(java.lang.String msg)
Display the message to either the gui or stderr. |
static void |
printMsg(java.lang.String msg,
boolean newline)
Display the message to either the gui or stderr. |
static void |
printMsg(java.lang.String msg,
int type)
Display the message to either the gui or stderr. |
static void |
printMsg(java.lang.String msg,
int type,
boolean newline)
Display the message to either the gui or stderr. |
static void |
printWarning(java.lang.String msg)
Display the warning message to either the gui or stderr. |
static void |
resetGloDBDefaults()
RE-set GloDB user defaults. |
static void |
setIgnoreAttributes(boolean ignoreAttributes)
Set the IGNORE_ATTRIBUTES flag. |
static void |
setVerbose(int verbose)
Set the VERBOSE flag. |
static java.lang.String |
uncompressString(byte[] compressedData)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int TRACK
public static final int SEQUENCE
public static final int FEATURE
public static final int WARNING
public static final int ERROR
public static final int FEEDBACK
private static int VERBOSE
private static boolean IGNORE_ATTRIBUTES
public static javax.swing.JTextArea guiMessages
Constructor Detail |
---|
public GloDBUtils()
Method Detail |
---|
public static void setVerbose(int verbose)
public static int getVerbose()
public static void setIgnoreAttributes(boolean ignoreAttributes)
public static boolean ignoreAttributes()
public static boolean isEmpty(java.lang.String str)
public static void resetGloDBDefaults()
public static java.lang.String convertConstant(int val)
public static java.lang.String getClassName(java.lang.Object o)
public static byte[] compressString(java.lang.String val)
public static java.lang.String uncompressString(byte[] compressedData)
public static void printMsg(java.lang.String msg)
public static void printMsg(java.lang.String msg, int type)
public static void printMsg(java.lang.String msg, boolean newline)
public static void printError(java.lang.String msg)
public static void printWarning(java.lang.String msg)
public static void printMsg(java.lang.String msg, int type, boolean newline)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |