List of usage examples for org.apache.commons.codec.binary BinaryCodec decode
public byte[] decode(byte[] ascii)
From source file:Main.java
public static byte[] bitsToBytes(String bits) { BinaryCodec binaryCodec = new BinaryCodec(); return binaryCodec.decode(bits.getBytes()); }