java.net
Class InetAddress
java.lang.Object
java.net.InetAddress
- All Implemented Interfaces:
- Serializable
- public class InetAddress
- extends Object
- implements Serializable
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
InetAddress
InetAddress()
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 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.