Here you can find the source of binaryStringToByte(String binary)
public static byte binaryStringToByte(String binary)
//package com.java2s; public class Main { public static byte binaryStringToByte(String binary) { return Integer.valueOf(binary, 2).byteValue(); }/* w w w. j a v a 2 s .c o m*/ }