org.ros.address
Class InetAddressFactory

java.lang.Object
  extended by org.ros.address.InetAddressFactory

public class InetAddressFactory
extends java.lang.Object


Method Summary
static java.net.InetAddress newFromHostString(java.lang.String host)
          Creates an InetAddress with both an IP and a host set so that no further resolving will take place.
static java.net.InetAddress newLoopback()
           
static java.net.InetAddress newNonLoopback()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

newNonLoopback

public static java.net.InetAddress newNonLoopback()

newFromHostString

public static java.net.InetAddress newFromHostString(java.lang.String host)
Creates an InetAddress with both an IP and a host set so that no further resolving will take place. If an IP address string is specified, this method ensures that it will be used in place of a host name. If a host name other than Address.LOCALHOST is specified, this method trys to find a non-loopback IP associated with the supplied host name. If the specified host name is Address.LOCALHOST, this method returns a loopback address.

Parameters:
host -
Returns:
an InetAddress with both an IP and a host set (no further resolving will take place)

newLoopback

public static java.net.InetAddress newLoopback()