public class IPV6Address extends Size16 implements Address, java.io.Serializable
Constructor and Description |
---|
IPV6Address(byte[] addr)
Create a IPV6Address from a byte[]
|
IPV6Address(int addr)
Create an IPV6Address from an int
|
IPV6Address(java.lang.String hostname)
Create a IPV6Address from a hostname
|
Modifier and Type | Method and Description |
---|---|
java.net.InetAddress |
asInetAddress()
Get IPV6Address as an InetAddress
|
int |
asInteger()
Get IPV6Address 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
|
int |
hashCode()
hash code
|
java.lang.String |
toString()
To String
|
asByteArray, size
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
asByteArray, size
public IPV6Address(java.lang.String hostname) throws java.net.UnknownHostException
java.net.UnknownHostException
public IPV6Address(byte[] addr) throws java.net.UnknownHostException
java.net.UnknownHostException
public IPV6Address(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