Here you can find the source of toBinaryID(final String id)
public static byte[] toBinaryID(final String id)
//package com.java2s; //License from project: BSD License public class Main { public static byte[] toBinaryID(final String id) { final int length = id.length(); final byte[] result = new byte[length]; for (int i = 0; i < length; i++) { result[i] = Byte.parseByte(Character.toString(id.charAt(i))); }/*from ww w . j a va 2 s . co m*/ return result; } }