hexToByteArray
Parses bytes from this string using the specified HexFormat .
Note that only HexFormat.BytesHexFormat affects parsing, and parsing is performed in case-insensitive manner. Also, any of the char sequences CRLF, LF and CR is considered a valid line separator.
Parameters
format
- the
HexFormat
to use for parsing,
HexFormat.Default
by default.
Exceptions
IllegalArgumentException
- if this string does not comply with the specified
format
.