wt.tools.hostname
Class TestHostName
java.lang.Object
wt.tools.hostname.TestHostName
- public class TestHostName
- extends Object
Application (main) to test java.net.InetAddress
host name resolution methods.
It exercises name-to-address and address-to-name resolution and prints the time
required. If invoked with no command line arguments, the local host name is used.
If arguments are present, each one is treated as a host name to test.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
versionID
private static final String versionID
- See Also:
- Constant Field Values
TestHostName
public TestHostName()
main
public static void main(String[] args)
throws UnknownHostException
- Throws:
UnknownHostException
test
private static void test(String name)
throws UnknownHostException
- Throws:
UnknownHostException