Java tutorial
//package com.java2s; //License from project: Apache License public class Main { @Deprecated public static byte[] parseHexString(String str) { str = str.trim(); String[] temps = str.split(" "); byte[] ret = new byte[temps.length]; int i = 0; for (String t : temps) { ret[i] = Integer.valueOf(t, 16).byteValue(); i++; } return ret; } }