List of utility methods to do Base2 Encode
String | toBase2(int b) to Base if (b > 0xff) { throw new IllegalArgumentException("input value is larger than a byte"); return padBase2(Integer.toBinaryString(b)); |
String | toBase2(int decimalNumber) to Base return fromDecimalToOtherBase(2, decimalNumber);
|
String | toBase2(int[] arr) to Base if (arr == null) { return ""; StringBuffer sb = new StringBuffer(); for (int i = 0; i < arr.length; i++) { sb.append(toBase2(arr[i])); if (i < arr.length - 1) { sb.append(" "); ... |