|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ipdr.utils.MacAddressUtil
public class MacAddressUtil
This class contains the convert methods of MAC Address. The convert methods are to convert from String to Long and from Long to String.
| Constructor Summary | |
|---|---|
MacAddressUtil()
|
|
| Method Summary | |
|---|---|
static long |
convertToMACLong(java.lang.String macAdd)
This method takes the MAC Address string format as per pattern in the specifications (11-12-21-33-1a-e2) as input and converts it into Long. |
static java.lang.String |
convertToMACString(long macAdd)
Generates a printable string containing the byte array in the standard IPv6 Address format. |
static void |
validateMACAddress(java.lang.String macAdd)
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 |
| Constructor Detail |
|---|
public MacAddressUtil()
| Method Detail |
|---|
public static long convertToMACLong(java.lang.String macAdd)
throws IPDRException
macAdd - MAC Address in String format
IPDRException
public static java.lang.String convertToMACString(long macAdd)
throws IPDRException
macAdd - 16 byte array containing a valid IPv6 Address.
IPDRException
public static void validateMACAddress(java.lang.String macAdd)
throws IPDRException
macAdd - 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 | ||||||||