Package adams.core.net
Class InetUtils
- java.lang.Object
-
- adams.core.net.InetUtils
-
public class InetUtils extends Object
Utility class for internet-related stuff.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Constructor Summary
Constructors Constructor Description InetUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
hasConnection(String host, int timeout)
Checks whether a connection is available to the specified host.
-
-
-
Method Detail
-
hasConnection
public static boolean hasConnection(String host, int timeout)
Checks whether a connection is available to the specified host.- Parameters:
host
- the host to pingtimeout
- the timeout in milli-seconds- Returns:
- true if successfully pinged
-
-