|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jcontrol.net.InetAddress
public class InetAddress
JControl - InetAddress Implementation. This class represents an Internet Protocol (IPv4) address.
Method Summary | |
---|---|
byte[] |
getAddress()
Returns the raw IP address of this InetAddress object. |
static InetAddress |
getByAddress(byte[] addr)
Returns an InetAddress object given the raw IP address. |
static InetAddress |
getLocalHost()
Returns the local host. |
String |
toString()
Converts this IP address to a String. |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, notifyAll, wait |
Method Detail |
---|
public static InetAddress getByAddress(byte[] addr)
addr
- - the raw IP address in network byte order
IllegalArgumenException
- - if IP address is of illegal lengthpublic static InetAddress getLocalHost() throws IOException
IOException
- - if no IP address for the host could be found.public byte[] getAddress()
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |