|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--springs.util.Utilities
A class with utilities.
Field Summary | |
static java.util.Vector |
LOCAL_IPs
|
Constructor Summary | |
Utilities()
|
Method Summary | |
static void |
block()
Blocks the caller forever. |
static java.lang.String |
getAsString(java.util.Set strings)
Gets a string representing the set. |
static java.lang.String |
getAsString(java.util.Vector strings)
Gets a string representing the vector. |
static java.net.InetAddress |
getLocalIPAddress()
Gets the local IP address. |
static java.util.Vector |
getLocalIPAddresses()
Gets all the local IP addresses. |
static java.lang.String |
getOneNameForLocalhost()
Gets the name of the localhost computer (one of the possible, if several). |
static java.lang.String |
getTimeString(long milliseconds)
Gets a string representing the time for the given milliseconds. |
static void |
print(java.lang.String line)
Prints the given line. |
static void |
print(java.lang.String line,
boolean print)
Prints the given line on condition that the boolean parameter is true. |
private static java.net.InetAddress |
selectIP(java.util.Vector ips)
Selects an IP address. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static java.util.Vector LOCAL_IPs
Constructor Detail |
public Utilities()
Method Detail |
public static void block()
public static void print(java.lang.String line)
public static void print(java.lang.String line, boolean print)
print
- a parameter indicating whether the given line should be printed or not.public static java.lang.String getTimeString(long milliseconds)
milliseconds
- the milliseconds.
String
public static java.lang.String getAsString(java.util.Vector strings)
strings
- the vector of strings.
String
public static java.lang.String getAsString(java.util.Set strings)
strings
- the set of strings.
Set
public static java.lang.String getOneNameForLocalhost()
String
public static java.net.InetAddress getLocalIPAddress()
InetAddress
private static java.net.InetAddress selectIP(java.util.Vector ips)
ips
- the vector of IP addresses (of class InetAddress).InetAddress
public static java.util.Vector getLocalIPAddresses()
Vector
,
InetAddress
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |