public final class HexStringUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
bytesFromHexString(String hexString)
Method bytesFromHexString
Description: create a byte-array from a hexidecimal string
accepts tokenized (0x leading) and non-tokenized hex strings
|
static String |
stringFromBytes(byte[] byteArray)
Method stringFromBytes
Description: create a hexidecimal string from a byte-array
|
static String |
stringFromBytesWithToken(byte[] byteArray)
Method stringFromBytesWithToken
Description: create a hexidecimal string from a byte-array
preappend with 0x token
|
public static byte[] bytesFromHexString(String hexString)
hexString - IllegalArgumentExceptionpublic static String stringFromBytes(byte[] byteArray)
byteArray - public static String stringFromBytesWithToken(byte[] byteArray)
byteArray - Copyright © 2017 LSST. All rights reserved.