Package au.gov.amsa.util
Class SixBit
- java.lang.Object
-
- au.gov.amsa.util.SixBit
-
public final class SixBit extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description SixBit()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidconvertSixBitToBits(java.lang.String str, int padBits, boolean[] bitSet, boolean[] calculated, int from, int to)Converts sixBit string characters to bits (boolean values in the array bitSet) but just between the bit rangefromtotoexclusive.static longgetSignedValue(int from, int to, boolean[] bitSet)static java.lang.StringgetString(int from, int to, boolean[] bitSet)static longgetValue(int from, int to, boolean[] bitSet)
-
-
-
Method Detail
-
convertSixBitToBits
public static void convertSixBitToBits(java.lang.String str, int padBits, boolean[] bitSet, boolean[] calculated, int from, int to)Converts sixBit string characters to bits (boolean values in the array bitSet) but just between the bit rangefromtotoexclusive.- Parameters:
str-padBits-bitSet-calculated-from-to-
-
getValue
public static long getValue(int from, int to, boolean[] bitSet)
-
getSignedValue
public static long getSignedValue(int from, int to, boolean[] bitSet)
-
getString
public static java.lang.String getString(int from, int to, boolean[] bitSet)
-
-