Class HexEncode
java.lang.Object
org.opendaylight.openflowplugin.libraries.liblldp.HexEncode
The class provides methods to convert hex encode strings.
-
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]
bytesFromHexString
(String values) static String
bytesToHexString
(byte[] bytes) This method converts byte array into String format without ":" inserted.static String
bytesToHexStringFormat
(byte[] bytes) This method converts byte array into HexString format with ":" inserted.static String
longToHexString
(long val) static long
stringToLong
(String values)
-
Method Details
-
bytesToHexString
This method converts byte array into String format without ":" inserted.- Parameters:
bytes
- The byte array to convert to string- Returns:
- The hexadecimal representation of the byte array. If bytes is null, "null" string is returned
-
longToHexString
-
bytesFromHexString
-
stringToLong
-
bytesToHexStringFormat
This method converts byte array into HexString format with ":" inserted.
-