public class IPV4Address extends Size4 implements Address, java.io.Serializable
Constructor and Description |
---|
IPV4Address(byte[] addr)
Create a IPV4Address from a byte[]
|
IPV4Address(int addr)
Create an IPV4Address from an int
|
IPV4Address(java.lang.String hostname)
Create a IPV4Address from a hostname
|
Modifier and Type | Method and Description |
---|---|
java.net.InetAddress |
asInetAddress()
Get IPV4Address as an InetAddress
|
int |
asInteger()
Get IPV4Address as an Integer.
|
java.lang.String |
asTransmitForm()
Address in transmittable form
|
int |
compareTo(java.lang.Object other)
Compare this Address to another one
|
boolean |
equals(java.lang.Object obj)
Equals
|
java.lang.String |
toString()
To String
|
asByteArray, hashCode, size
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
asByteArray, size
public IPV4Address(java.lang.String hostname) throws java.net.UnknownHostException
java.net.UnknownHostException
public IPV4Address(byte[] addr) throws java.net.UnknownHostException
java.net.UnknownHostException
public IPV4Address(int addr) throws java.net.UnknownHostException
java.net.UnknownHostException
public java.net.InetAddress asInetAddress()
asInetAddress
in interface Address
public int asInteger()
public java.lang.String asTransmitForm()
asTransmitForm
in interface Address
public int compareTo(java.lang.Object other)
compareTo
in interface java.lang.Comparable
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
User Space Routing 0.10.3