ccs.utils
Class LocalHost

java.lang.Object
  extended by ccs.utils.LocalHost

public class LocalHost
extends java.lang.Object

Utility class to determine whether a supplied InetAddress refers to localhost. This is harder than it ought to be.


Constructor Summary
LocalHost()
           
 
Method Summary
static boolean isThis(java.net.InetAddress addr)
          Whether this InetAddress represents localhost.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalHost

public LocalHost()
Method Detail

isThis

public static boolean isThis(java.net.InetAddress addr)
Whether this InetAddress represents localhost. This is harder to work out than one might think, since the various methods provided turn out to be fairly crude.