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