|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ipdr.utils.IPV6AddrUtil
public class IPV6AddrUtil
This class is added to include the method for conversion of string of IPv6 Address to byte array and back to string and validate IPv6 address.
| Field Summary | |
|---|---|
static int |
IPV6_SIZE
To store the size of IPv6 string |
| Constructor Summary | |
|---|---|
IPV6AddrUtil()
|
|
| Method Summary | |
|---|---|
static byte[] |
convIPV6AddrToByteArray(java.lang.String ipV6Addr)
This method takes the IPv6 Address string format as per pattern specified in the NDM-U 3.0 specification as input and converts it into Byte array. |
static java.lang.String |
IPV6AddrToString(byte[] ipV6Addr)
Generates a printable string containing the byte array in the standard IPv6 Address format. |
static void |
validateIPv6Addr(java.lang.String IPAddr)
This method will validate whether the input IP Address is in proper format for IPv6. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int IPV6_SIZE
| Constructor Detail |
|---|
public IPV6AddrUtil()
| Method Detail |
|---|
public static byte[] convIPV6AddrToByteArray(java.lang.String ipV6Addr)
throws IPDRException
ipV6Addr - IPv6 Address in String format
IPDRException
public static java.lang.String IPV6AddrToString(byte[] ipV6Addr)
throws IPDRException
ipV6Addr - 16 byte array containing a valid IPv6 Address.
IPDRException
public static void validateIPv6Addr(java.lang.String IPAddr)
throws IPDRException
IPAddr - IP Address to be validated in Hexadecimal String
IPDRException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||