JML

java.net
Class InetAddress

java.lang.Object
  extended byjava.net.InetAddress
All Implemented Interfaces:
Serializable

public class InetAddress
extends Object
implements Serializable


Nested Class Summary
(package private) static class InetAddress.Cache
           
(package private) static class InetAddress.CacheEntry
           
 
Field Summary
(package private)  int address
           
private static InetAddress.Cache addressCache
           
private static boolean addressCacheInit
           
private  String canonicalHostName
           
(package private)  int family
           
(package private)  String hostName
           
(package private) static InetAddressImpl impl
           
(package private) static int IPv4
           
(package private) static int IPv6
           
private static HashMap lookupTable
           
private static sun.net.spi.nameservice.NameService nameService
           
private static InetAddress.Cache negativeCache
           
(package private) static boolean preferIPv6Address
           
private static long serialVersionUID
           
(package private) static InetAddress[] unknown_array
           
 
Constructor Summary
(package private) InetAddress()
           
 
Method Summary
(package private) static InetAddress anyLocalAddress()
           
private static void cacheAddress(String, Object, boolean)
           
private static void cacheInitIfNeeded()
           
private static Object checkLookupTable(String)
           
private static int checkNumericZone(String)
           
 boolean equals(Object)
           
 byte[] getAddress()
           
private static Object getAddressFromNameService(String)
           
static InetAddress[] getAllByName(String)
           
private static InetAddress[] getAllByName0(String)
           
(package private) static InetAddress[] getAllByName0(String, boolean)
           
static InetAddress getByAddress(byte[])
           
static InetAddress getByAddress(String, byte[])
           
static InetAddress getByName(String)
           
private static Object getCachedAddress(String)
           
 String getCanonicalHostName()
           
 String getHostAddress()
           
private static String getHostFromNameService(InetAddress, boolean)
           
 String getHostName()
           
(package private)  String getHostName(boolean)
           
static InetAddress getLocalHost()
           
 int hashCode()
           
private static void init()
           
 boolean isAnyLocalAddress()
           
 boolean isLinkLocalAddress()
           
 boolean isLoopbackAddress()
           
 boolean isMCGlobal()
           
 boolean isMCLinkLocal()
           
 boolean isMCNodeLocal()
           
 boolean isMCOrgLocal()
           
 boolean isMCSiteLocal()
           
 boolean isMulticastAddress()
           
 boolean isReachable(int)
           
 boolean isReachable(NetworkInterface, int, int)
           
 boolean isSiteLocalAddress()
           
(package private) static Object loadImpl(String)
           
private  Object readResolve()
           
 String toString()
           
private static void updateLookupTable(String)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID

lookupTable

private static HashMap lookupTable

address

int address

IPv6

static final int IPv6

addressCache

private static InetAddress.Cache addressCache

hostName

String hostName

IPv4

static final int IPv4

canonicalHostName

private transient String canonicalHostName

impl

static InetAddressImpl impl

negativeCache

private static InetAddress.Cache negativeCache

nameService

private static sun.net.spi.nameservice.NameService nameService

preferIPv6Address

static transient boolean preferIPv6Address

addressCacheInit

private static boolean addressCacheInit

family

int family

unknown_array

static InetAddress[] unknown_array
Constructor Detail

InetAddress

InetAddress()
Method Detail

readResolve

private Object readResolve()
                    throws ObjectStreamException
Throws:
ObjectStreamException

isMulticastAddress

public boolean isMulticastAddress()

isAnyLocalAddress

public boolean isAnyLocalAddress()

isLoopbackAddress

public boolean isLoopbackAddress()

isLinkLocalAddress

public boolean isLinkLocalAddress()

isSiteLocalAddress

public boolean isSiteLocalAddress()

isMCGlobal

public boolean isMCGlobal()

isMCNodeLocal

public boolean isMCNodeLocal()

isMCLinkLocal

public boolean isMCLinkLocal()

isMCSiteLocal

public boolean isMCSiteLocal()

isMCOrgLocal

public boolean isMCOrgLocal()

isReachable

public boolean isReachable(int)
                    throws IOException
Throws:
IOException

isReachable

public boolean isReachable(NetworkInterface,
                           int,
                           int)
                    throws IOException
Throws:
IOException

getHostName

public String getHostName()

getHostName

String getHostName(boolean)

getCanonicalHostName

public String getCanonicalHostName()

getHostFromNameService

private static String getHostFromNameService(InetAddress,
                                             boolean)

getAddress

public byte[] getAddress()

getHostAddress

public String getHostAddress()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object

cacheInitIfNeeded

private static void cacheInitIfNeeded()

cacheAddress

private static void cacheAddress(String,
                                 Object,
                                 boolean)

getCachedAddress

private static Object getCachedAddress(String)

getByAddress

public static InetAddress getByAddress(String,
                                       byte[])
                                throws UnknownHostException
Throws:
UnknownHostException

getByName

public static InetAddress getByName(String)
                             throws UnknownHostException
Throws:
UnknownHostException

getAllByName

public static InetAddress[] getAllByName(String)
                                  throws UnknownHostException
Throws:
UnknownHostException

checkNumericZone

private static int checkNumericZone(String)
                             throws UnknownHostException
Throws:
UnknownHostException

getAllByName0

private static InetAddress[] getAllByName0(String)
                                    throws UnknownHostException
Throws:
UnknownHostException

getAllByName0

static InetAddress[] getAllByName0(String,
                                   boolean)
                            throws UnknownHostException
Throws:
UnknownHostException

getAddressFromNameService

private static Object getAddressFromNameService(String)
                                         throws UnknownHostException
Throws:
UnknownHostException

checkLookupTable

private static Object checkLookupTable(String)

updateLookupTable

private static void updateLookupTable(String)

getByAddress

public static InetAddress getByAddress(byte[])
                                throws UnknownHostException
Throws:
UnknownHostException

getLocalHost

public static InetAddress getLocalHost()
                                throws UnknownHostException
Throws:
UnknownHostException

init

private static void init()

anyLocalAddress

static InetAddress anyLocalAddress()

loadImpl

static Object loadImpl(String)

JML

JML is Copyright (C) 1998-2002 by Iowa State University and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This release depends on code from the MultiJava project and is based in part on the Kopi project Copyright (C) 1990-99 DMS Decision Management Systems Ges.m.b.H.