java.net
Class Inet4AddressImpl

java.lang.Object
  extended byjava.net.Inet4AddressImpl
All Implemented Interfaces:
InetAddressImpl

class Inet4AddressImpl
extends Object
implements InetAddressImpl


Field Summary
private  InetAddress anyLocalAddress
           
private  InetAddress loopbackAddress
           
 
Constructor Summary
(package private) Inet4AddressImpl()
           
 
Method Summary
 InetAddress anyLocalAddress()
           
 String getHostByAddr(byte[] addr)
           
 String getLocalHostName()
           
 byte[][] lookupAllHostAddr(String hostname)
           
 InetAddress loopbackAddress()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

anyLocalAddress

private InetAddress anyLocalAddress

loopbackAddress

private InetAddress loopbackAddress
Constructor Detail

Inet4AddressImpl

Inet4AddressImpl()
Method Detail

getLocalHostName

public String getLocalHostName()
                        throws UnknownHostException
Specified by:
getLocalHostName in interface InetAddressImpl
Throws:
UnknownHostException

lookupAllHostAddr

public byte[][] lookupAllHostAddr(String hostname)
                           throws UnknownHostException
Specified by:
lookupAllHostAddr in interface InetAddressImpl
Throws:
UnknownHostException

getHostByAddr

public String getHostByAddr(byte[] addr)
                     throws UnknownHostException
Specified by:
getHostByAddr in interface InetAddressImpl
Throws:
UnknownHostException

anyLocalAddress

public InetAddress anyLocalAddress()
Specified by:
anyLocalAddress in interface InetAddressImpl

loopbackAddress

public InetAddress loopbackAddress()
Specified by:
loopbackAddress in interface InetAddressImpl