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
           
 
Model Field Summary
 
Model fields inherited from class java.lang.Object
_getClass, objectState, theString
 
Ghost Field Summary
 
Ghost fields inherited from class java.lang.Object
objectTimesFinalized, owner
 
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()
           
 
Model Method Summary
 
Model methods inherited from class java.lang.Object
hashValue
 
Method Summary
(package private) static InetAddress anyLocalAddress()
           
private static void cacheAddress(String, Object, boolean)
           
private static void cacheInitIfNeeded()
           
private static Object checkLookupTable(String)
           
 boolean equals(Object)
           
 byte[] getAddress()
           
private static Object getAddressFromNameService(String, InetAddress)
           
static InetAddress[] getAllByName(String)
           
private static InetAddress[] getAllByName(String, InetAddress)
           
private static InetAddress[] getAllByName0(String)
           
(package private) static InetAddress[] getAllByName0(String, boolean)
           
private static InetAddress[] getAllByName0(String, InetAddress, boolean)
           
static InetAddress getByAddress(byte[])
           
static InetAddress getByAddress(String, byte[])
           
static InetAddress getByName(String)
           
private static InetAddress getByName(String, InetAddress)
           
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 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

canonicalHostName

private transient String canonicalHostName

IPv6

static final int IPv6

addressCache

private static InetAddress.Cache addressCache

address

int address

IPv4

static final int IPv4

unknown_array

static InetAddress[] unknown_array

addressCacheInit

private static boolean addressCacheInit

negativeCache

private static InetAddress.Cache negativeCache

lookupTable

private static HashMap lookupTable

serialVersionUID

private static final long serialVersionUID

family

int family

hostName

String hostName

preferIPv6Address

static transient boolean preferIPv6Address

nameService

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

impl

static InetAddressImpl impl
Constructor Detail

InetAddress

InetAddress()
Method Detail

hashCode

public int hashCode()
Overrides:
hashCode in class Object

cacheInitIfNeeded

private static void cacheInitIfNeeded()

init

private static void init()

isAnyLocalAddress

public boolean isAnyLocalAddress()

isLinkLocalAddress

public boolean isLinkLocalAddress()

isLoopbackAddress

public boolean isLoopbackAddress()

isMCGlobal

public boolean isMCGlobal()

isMCLinkLocal

public boolean isMCLinkLocal()

isMCNodeLocal

public boolean isMCNodeLocal()

isMCOrgLocal

public boolean isMCOrgLocal()

isMCSiteLocal

public boolean isMCSiteLocal()

isMulticastAddress

public boolean isMulticastAddress()

isSiteLocalAddress

public boolean isSiteLocalAddress()

getAddress

public byte[] getAddress()

readResolve

private Object readResolve()
                    throws ObjectStreamException
Throws:
ObjectStreamException

equals

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

getCanonicalHostName

public String getCanonicalHostName()

getHostAddress

public String getHostAddress()

getHostName

public String getHostName()

toString

public String toString()
Overrides:
toString in class Object

updateLookupTable

private static void updateLookupTable(String)

getHostName

String getHostName(boolean)

anyLocalAddress

static InetAddress anyLocalAddress()

getLocalHost

public static InetAddress getLocalHost()
                                throws UnknownHostException
Throws:
UnknownHostException

getByAddress

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

checkLookupTable

private static Object checkLookupTable(String)

getCachedAddress

private static Object getCachedAddress(String)

loadImpl

static Object loadImpl(String)

cacheAddress

private static void cacheAddress(String,
                                 Object,
                                 boolean)

getHostFromNameService

private static String getHostFromNameService(InetAddress,
                                             boolean)

getByName

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

getAllByName

public static InetAddress[] getAllByName(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

getByAddress

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

getAddressFromNameService

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

getByName

private static InetAddress getByName(String,
                                     InetAddress)
                              throws UnknownHostException
Throws:
UnknownHostException

getAllByName

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

getAllByName0

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

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.