wt.tools.hostname
Class TestHostName

java.lang.Object
  extended bywt.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.


Field Summary
private static String versionID
           
 
Constructor Summary
TestHostName()
           
 
Method Summary
static void main(String[] args)
           
private static void test(String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

versionID

private static final String versionID
See Also:
Constant Field Values
Constructor Detail

TestHostName

public TestHostName()
Method Detail

main

public static void main(String[] args)
                 throws UnknownHostException
Throws:
UnknownHostException

test

private static void test(String name)
                  throws UnknownHostException
Throws:
UnknownHostException