|
|||||||||
| Home >> All >> java >> [ net overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.net
Class Inet4Address

java.lang.Objectjava.net.InetAddress
java.net.Inet4Address
- All Implemented Interfaces:
- java.io.Serializable
- public final class Inet4Address
- extends InetAddress
| Field Summary | |
(package private) static long |
serialVersionUID
For compatability with Sun's JDK 1.4.2 rev. |
| Fields inherited from class java.net.InetAddress |
addr, ANY_IF, family, hostName, LOCALHOST |
| Constructor Summary | |
(package private) |
Inet4Address(byte[] addr,
java.lang.String host)
Initializes this object's addr instance variable from the passed in byte array. |
| Method Summary | |
boolean |
equals(java.lang.Object obj)
Compare the current Inet4Address instance with obj |
byte[] |
getAddress()
Returns the address of the current instance |
java.lang.String |
getHostAddress()
Returns the address as string |
int |
hashCode()
Computes the hashcode of the instance |
boolean |
isAnyLocalAddress()
Checks if this address is a wildcard address |
boolean |
isLinkLocalAddress()
Checks if this address is a link local address |
boolean |
isLoopbackAddress()
Checks if this address is a loopback address |
boolean |
isMCGlobal()
Checks if this multicast address has global scope |
boolean |
isMCLinkLocal()
Checks if this multicast address has link scope |
boolean |
isMCNodeLocal()
Checks if this multicast address has node scope |
boolean |
isMCOrgLocal()
Checks if this multicast address has organization scope |
boolean |
isMCSiteLocal()
Checks if this multicast address has site scope |
boolean |
isMulticastAddress()
Checks if the address is a multicast address |
boolean |
isSiteLocalAddress()
Checks if this address is a site local address |
private java.lang.Object |
writeReplace()
needed for serialization |
| Methods inherited from class java.net.InetAddress |
getAllByName, getByAddress, getByAddress, getByName, getCanonicalHostName, getHostName, getInaddrAny, getLocalHost, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
serialVersionUID
static final long serialVersionUID
- For compatability with Sun's JDK 1.4.2 rev. 5
- See Also:
- Constant Field Values
| Constructor Detail |
Inet4Address
Inet4Address(byte[] addr,
java.lang.String host)
- Initializes this object's addr instance variable from the passed in
byte array. Note that this constructor is protected and is called
only by static methods in this class.
| Method Detail |
writeReplace
private java.lang.Object writeReplace() throws java.io.ObjectStreamException
- needed for serialization
isMulticastAddress
public boolean isMulticastAddress()
- Checks if the address is a multicast address
- Overrides:
isMulticastAddressin classInetAddress
- Since:
- 1.1
isLoopbackAddress
public boolean isLoopbackAddress()
- Checks if this address is a loopback address
- Overrides:
isLoopbackAddressin classInetAddress
isAnyLocalAddress
public boolean isAnyLocalAddress()
- Checks if this address is a wildcard address
- Overrides:
isAnyLocalAddressin classInetAddress
- Since:
- 1.4
isLinkLocalAddress
public boolean isLinkLocalAddress()
- Checks if this address is a link local address
- Overrides:
isLinkLocalAddressin classInetAddress
- Since:
- 1.4
isSiteLocalAddress
public boolean isSiteLocalAddress()
- Checks if this address is a site local address
- Overrides:
isSiteLocalAddressin classInetAddress
- Since:
- 1.4
isMCGlobal
public boolean isMCGlobal()
- Checks if this multicast address has global scope
- Overrides:
isMCGlobalin classInetAddress
- Since:
- 1.4
isMCNodeLocal
public boolean isMCNodeLocal()
- Checks if this multicast address has node scope
- Overrides:
isMCNodeLocalin classInetAddress
- Since:
- 1.4
isMCLinkLocal
public boolean isMCLinkLocal()
- Checks if this multicast address has link scope
- Overrides:
isMCLinkLocalin classInetAddress
- Since:
- 1.4
isMCSiteLocal
public boolean isMCSiteLocal()
- Checks if this multicast address has site scope
- Overrides:
isMCSiteLocalin classInetAddress
- Since:
- 1.4
isMCOrgLocal
public boolean isMCOrgLocal()
- Checks if this multicast address has organization scope
- Overrides:
isMCOrgLocalin classInetAddress
- Since:
- 1.4
getAddress
public byte[] getAddress()
- Returns the address of the current instance
- Overrides:
getAddressin classInetAddress
getHostAddress
public java.lang.String getHostAddress()
- Returns the address as string
- Overrides:
getHostAddressin classInetAddress
- Since:
- 1.0.2
hashCode
public int hashCode()
- Computes the hashcode of the instance
- Overrides:
hashCodein classInetAddress
equals
public boolean equals(java.lang.Object obj)
- Compare the current Inet4Address instance with obj
- Overrides:
equalsin classInetAddress
|
|||||||||
| Home >> All >> java >> [ net overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC