Java Utililty Methods Base2 Encode

List of utility methods to do Base2 Encode

Description

The list of methods to do Base2 Encode are organized into topic(s).

Method

StringtoBase2(int b)
to Base
if (b > 0xff) {
    throw new IllegalArgumentException("input value is larger than a byte");
return padBase2(Integer.toBinaryString(b));
StringtoBase2(int decimalNumber)
to Base
return fromDecimalToOtherBase(2, decimalNumber);
StringtoBase2(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(" ");
...