API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.net. Inet4Address View Source
Author(s)
Since
1.4
Version
Serial
Hierarchy
 Object
      InetAddress
          Inet4Address
Implements
Subclasses
Description
publicfinal class Inet4Address
  This class represents an Internet Protocol version 4 (IPv4) address.
See also:   
Constructors
pack-private Inet4Address ()
pack-private Inet4Address (String hostName, byte[] addr)
pack-private Inet4Address (String hostName, int address)
Methods
Hide/Show inherited methods
pack-privatestatic InetAddress anyLocalAddress () [Inherited From InetAddress]
public boolean equals (Object obj) [Overrides InetAddress]
  Compares this object against the specified object.
public byte getAddress () [Overrides InetAddress]
  Returns the raw IP address of this InetAddress object.
publicstatic InetAddress getAllByName (String host) throws UnknownHostException [Inherited From InetAddress]
  Given the name of a host, returns an array of its IP addresses, based on the configured name service on the system.
pack-privatestatic InetAddress getAllByName0 (String host, boolean check) throws UnknownHostException [Inherited From InetAddress]
package private so SocketPermission can call it
publicstatic InetAddress getByAddress (byte[] addr) throws UnknownHostException [Inherited From InetAddress]
  Returns an InetAddress object given the raw IP address .
publicstatic InetAddress getByAddress (String host, byte[] addr) throws UnknownHostException [Inherited From InetAddress]
  Create an InetAddress based on the provided host name and IP address No name service is checked for the validity of the address.
publicstatic InetAddress getByName (String host) throws UnknownHostException [Inherited From InetAddress]
  Determines the IP address of a host, given the host's name.
public String getCanonicalHostName () [Inherited From InetAddress]
  Gets the fully qualified domain name for this IP address.
public String getHostAddress () [Overrides InetAddress]
  Returns the IP address string in textual presentation form.
public String getHostName () [Inherited From InetAddress]
  Gets the host name for this IP address.
pack-private String getHostName (boolean check) [Inherited From InetAddress]
  Returns the hostname for this address.
publicstatic InetAddress getLocalHost () throws UnknownHostException [Inherited From InetAddress]
  Returns the local host.
public int hashCode () [Overrides InetAddress]
  Returns a hashcode for this IP address.
public boolean isAnyLocalAddress () [Overrides InetAddress]
  Utility routine to check if the InetAddress in a wildcard address.
public boolean isLinkLocalAddress () [Overrides InetAddress]
  Utility routine to check if the InetAddress is an link local address.
public boolean isLoopbackAddress () [Overrides InetAddress]
public boolean isMCGlobal () [Overrides InetAddress]
  Utility routine to check if the multicast address has global scope.
public boolean isMCLinkLocal () [Overrides InetAddress]
  Utility routine to check if the multicast address has link scope.
public boolean isMCNodeLocal () [Overrides InetAddress]
  Utility routine to check if the multicast address has node scope.
public boolean isMCOrgLocal () [Overrides InetAddress]
  Utility routine to check if the multicast address has organization scope.
public boolean isMCSiteLocal () [Overrides InetAddress]
  Utility routine to check if the multicast address has site scope.
public boolean isMulticastAddress () [Overrides InetAddress]
  Utility routine to check if the InetAddress is an IP multicast address.
public boolean isReachable (int timeout) throws IOException [Inherited From InetAddress]
  Test whether that address is reachable.
public boolean isReachable (NetworkInterface netif, int ttl, int timeout) throws IOException [Inherited From InetAddress]
  Test whether that address is reachable.
public boolean isSiteLocalAddress () [Overrides InetAddress]
  Utility routine to check if the InetAddress is a site local address.
pack-privatestatic Object loadImpl (String implName) [Inherited From InetAddress]
pack-privatestatic String numericToTextFormat (byte[] src)
public String toString () [Inherited From InetAddress]
  Converts this IP address to a String.
Fields
Hide/Show inherited fields
pack-private int address [Inherited From InetAddress]
Holds a 32-bit IPv4 address.
pack-private int family [Inherited From InetAddress]
Specifies the address family type, for instance, '1' for IPv4 addresses, and '2' for IPv6 addresses.
pack-private String hostName [Inherited From InetAddress]
pack-privatestatic InetAddressImpl impl [Inherited From InetAddress]
pack-privatefinalstatic int INADDRSZ = "4"
pack-privatefinalstatic int IPv4 = "1" [Inherited From InetAddress]
  Specify the address family: Internet Protocol, Version 4
pack-privatefinalstatic int IPv6 = "2" [Inherited From InetAddress]
  Specify the address family: Internet Protocol, Version 6
pack-privatestatictransient boolean preferIPv6Address [Inherited From InetAddress]
pack-privatestatic InetAddress unknown_array [Inherited From InetAddress]
Nested Classes
  InetAddress.CacheEntry
Represents a cache entry
  InetAddress.Cache
A cache that manages entries based on a policy specified at creation time.
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar