|
Luky Library - 4.1.1 (20061117-1148) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectluky.util.Toolbox
public class Toolbox
This class is a placeholder for functions that seemed to have no logical other place. It's a toolbox for your convienance
Revision Changes :
![]() |
![]() |
Field Summary | |
---|---|
static boolean |
isLinux
|
static boolean |
isMacOSX
|
static boolean |
isOS2
|
static boolean |
isSolaris
|
static boolean |
isWindows
|
static boolean |
isWindows2000orXP
|
static boolean |
isWindows95
|
static boolean |
isWindows98
|
static boolean |
isWindowsMe
|
static boolean |
isWindowsNT
|
static boolean |
isWindowsNTor2000orXP
|
static boolean |
isWindowsXP
|
Constructor Summary | |
---|---|
Toolbox()
default constructor |
Method Summary | |
---|---|
static void |
copy(File src,
File dst)
copies the src file to the dst file if dst does not exist, it will be created |
static String |
fillString(int number,
int size)
takes a number and fills it to n places (e.g. 2,2 becomes 02) |
static String |
getCanonicalHostName()
returns the canonical name of the current machine |
static String |
getHostname()
returns the hostname of the current machine |
static String |
getIPaddress()
returns the ip of the current machine |
static String |
getJDKversion()
returns the version of the current JVM |
static Color |
statusColor(String name)
takes a constant status as input and returns the allocated color value |
static String |
statusString(int status)
takes a constant status as input and returns the text value |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static boolean isWindows
public static boolean isWindowsNT
public static boolean isWindowsXP
public static boolean isWindowsNTor2000orXP
public static boolean isWindows2000orXP
public static boolean isWindows95
public static boolean isWindows98
public static boolean isWindowsMe
public static boolean isMacOSX
public static boolean isLinux
public static boolean isSolaris
public static boolean isOS2
Constructor Detail |
---|
public Toolbox()
Method Detail |
---|
public static String statusString(int status)
status
- the status that must be outputted
public static Color statusColor(String name)
name
- the status color that must be outputted
public static String getCanonicalHostName()
public static String getHostname()
public static String getIPaddress()
public static String fillString(int number, int size)
number
- the input digitsize
- the total number of digits
public static void copy(File src, File dst) throws IOException
IOException
public static String getJDKversion()
|
Luky Library - 4.1.1 (20061117-1148) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |