Here you can find the source of fromBase64(String hex)
Parameter | Description |
---|---|
hex | the hex string |
private static byte[] fromBase64(String hex)
//package com.java2s; import javax.xml.bind.DatatypeConverter; public class Main { /**//w w w . ja va 2 s .c om * Converts a string of hexadecimal characters into a byte array. * * @param hex the hex string * @return the hex string decoded into a byte array */ private static byte[] fromBase64(String hex) { return DatatypeConverter.parseBase64Binary(hex); } }