static byte[] hexByteArrayToByteArray(byte[] b) {
    int len = b.length;
    byte[] data = new byte[len / 2];
    char c1, c2;
    for (int i = 0; i < len - 1; i = i + 2) {
      c1 = (char) b[i];
      c2 = (char) b[i + 1];
      data[i / 2] = (byte) ((Character.digit(c1, 16) << 4) + Character
          .digit(c2, 16));
    }
    return data;
  }
Utility class for dealing with byte strings

@author Stan Love
@version 0.0.1
olv-vfs/src/main/java/net/sf/vfsjfilechooser/accessories/bookmarks/Util.java