Helper to convert a hex encoded string into a byte array. Warning: This method won't pad the string to make sure it's an even number of bytes. @param bytes The hex encoded string to convert @return A byte array from the hex string @throws IllegalArgumentException if the string contains illega
(final String bytes)
| 895 | * or can't be converted. |
| 896 | */ |
| 897 | public static byte[] stringToBytes(final String bytes) { |
| 898 | return DatatypeConverter.parseHexBinary(bytes); |
| 899 | } |
| 900 | |
| 901 | /** @return Returns the ASCII character set */ |
| 902 | public static Charset ASCII() { |
no outgoing calls
no test coverage detected