Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
java.net

Class Inet4Address

java.lang.Object
|
+--java.net.InetAddress
   |
   +--java.net.Inet4Address


public final class Inet4Address

extends InetAddress

Author:

Constructor Summary

Inet4Address(byte[] addr, java.lang.String host)

Creates a Inet4Address

Method Summary

booleanequals(java.lang.Object obj)

Compare the current Inet4Address instance with obj
byte[]getAddress()

Returns the address of the current instance
java.lang.StringgetHostAddress()

Returns the address as string
inthashCode()

Computes the hashcode of the instance
booleanisAnyLocalAddress()

Checks if this address is a wildcard address
booleanisLinkLocalAddress()

Checks if this address is a link local address
booleanisLoopbackAddress()

Checks if this address is a loopback address
booleanisMCGlobal()

Checks if this multicast address has global scope
booleanisMCLinkLocal()

Checks if this multicast address has link scope
booleanisMCNodeLocal()

Checks if this multicast address has node scope
booleanisMCOrgLocal()

Checks if this multicast address has organization scope
booleanisMCSiteLocal()

Checks if this multicast address has site scope
booleanisMulticastAddress()

Checks if the address is a multicast address
booleanisSiteLocalAddress()

Checks if this address is a site local address

Constructor Details

Inet4Address

protected Inet4Address(byte[] addr, java.lang.String host)

Creates a Inet4Address

Parameters:


Method Details

equals

public boolean equals(java.lang.Object obj)

Compare the current Inet4Address instance with obj

Parameters:


getAddress

public byte[] getAddress()

Returns the address of the current instance


getHostAddress

public String getHostAddress()

Returns the address as string

Since:

hashCode

public int hashCode()

Computes the hashcode of the instance


isAnyLocalAddress

public boolean isAnyLocalAddress()

Checks if this address is a wildcard address

Since:

isLinkLocalAddress

public boolean isLinkLocalAddress()

Checks if this address is a link local address

Since:

isLoopbackAddress

public boolean isLoopbackAddress()

Checks if this address is a loopback address


isMCGlobal

public boolean isMCGlobal()

Checks if this multicast address has global scope

Since:

isMCLinkLocal

public boolean isMCLinkLocal()

Checks if this multicast address has link scope

Since:

isMCNodeLocal

public boolean isMCNodeLocal()

Checks if this multicast address has node scope

Since:

isMCOrgLocal

public boolean isMCOrgLocal()

Checks if this multicast address has organization scope

Since:

isMCSiteLocal

public boolean isMCSiteLocal()

Checks if this multicast address has site scope

Since:

isMulticastAddress

public boolean isMulticastAddress()

Checks if the address is a multicast address

Since:

isSiteLocalAddress

public boolean isSiteLocalAddress()

Checks if this address is a site local address

Since: