Luky Library - 4.1.1 (20061117-1148)

luky.util
Class Toolbox

java.lang.Object
  extended by luky.util.Toolbox

public class Toolbox
extends Object

This class is a placeholder for functions that seemed to have no logical other place. It's a toolbox for your convienance

Revision Changes :

Version:
1.01
Author:
Chris Lukassen
 

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

isWindows

public static boolean isWindows

isWindowsNT

public static boolean isWindowsNT

isWindowsXP

public static boolean isWindowsXP

isWindowsNTor2000orXP

public static boolean isWindowsNTor2000orXP

isWindows2000orXP

public static boolean isWindows2000orXP

isWindows95

public static boolean isWindows95

isWindows98

public static boolean isWindows98

isWindowsMe

public static boolean isWindowsMe

isMacOSX

public static boolean isMacOSX

isLinux

public static boolean isLinux

isSolaris

public static boolean isSolaris

isOS2

public static boolean isOS2
Constructor Detail

Toolbox

public Toolbox()
default constructor

Method Detail

statusString

public static String statusString(int status)
takes a constant status as input and returns the text value

Parameters:
status - the status that must be outputted
Returns:
status in String format

statusColor

public static Color statusColor(String name)
takes a constant status as input and returns the allocated color value

Parameters:
name - the status color that must be outputted
Returns:
status color

getCanonicalHostName

public static String getCanonicalHostName()
returns the canonical name of the current machine

Returns:
the canonical name

getHostname

public static String getHostname()
returns the hostname of the current machine

Returns:
the hostname

getIPaddress

public static String getIPaddress()
returns the ip of the current machine

Returns:
the ip address

fillString

public static String fillString(int number,
                                int size)
takes a number and fills it to n places (e.g. 2,2 becomes 02)

Parameters:
number - the input digit
size - the total number of digits
Returns:
the number as a string

copy

public static void copy(File src,
                        File dst)
                 throws IOException
copies the src file to the dst file if dst does not exist, it will be created

Throws:
IOException

getJDKversion

public static String getJDKversion()
returns the version of the current JVM


Luky Library - 4.1.1 (20061117-1148)