public final class HexString extends Object
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
fromHexString(String values)
Convert a string of hex values into a string of bytes.
|
static String |
toHexString(byte[] bytes)
Convert a string of bytes to a ':' separated hex string.
|
static String |
toHexString(long val) |
static String |
toHexString(long val,
int padTo) |
static long |
toLong(String value) |
public static String toHexString(byte[] bytes)
bytes - string of bytes to convertpublic static String toHexString(long val, int padTo)
public static String toHexString(long val)
public static byte[] fromHexString(String values)
values - "0f:ca:fe:de:ad:be:ef"NumberFormatException - If the string can not be parsedpublic static long toLong(String value)
Copyright © 2015. All rights reserved.