public final class HexConverter extends Object
Extracted from javax.xml.bind.DatatypeConverterImpl
| Constructor and Description |
|---|
HexConverter() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
parseHexBinary(String hex)
Converts the string argument into an array of bytes.
|
static String |
printHexBinary(byte[] data)
Converts an array of bytes into a string.
|
public static String printHexBinary(byte[] data)
data - An array of bytesIllegalArgumentException - if data is null.public static byte[] parseHexBinary(String hex)
hex - A string containing lexical representation of
hex binary.IllegalArgumentException - if string parameter does not conform to lexical value space defined in XML Schema Part 2: Datatypes for xsd:hexBinary.Copyright © 2019. All rights reserved.