public class Sixbit extends Object
Modifier and Type | Field and Description |
---|---|
static int |
BITSPERCHAR |
Modifier and Type | Method and Description |
---|---|
BitVector |
get(int from,
int to) |
int |
getAs17BitInt(int from,
int to) |
int |
getAs18BitInt(int from,
int to) |
int |
getAs27BitInt(int from,
int to) |
int |
getAs28BitInt(int from,
int to) |
int |
getAs8BitInt(int from,
int to) |
boolean |
getBoolean(int index)
Return bit as boolean from the bit vector
|
int |
getInt(int from,
int to)
Returns the requested bits interpreted as an integer (MSB first) from the message.
|
String |
getString(int fromIndex,
int toIndex)
Return string from bit vector
|
int |
length() |
static String |
stripAtSigns(String orig) |
public static final int BITSPERCHAR
public Sixbit(String payload, int fillBits)
public BitVector get(int from, int to)
public int length()
public boolean getBoolean(int index)
index
- start index of bitpublic int getInt(int from, int to)
from
- begin index (inclusive)to
- end index (inclusive)public int getAs8BitInt(int from, int to)
public int getAs17BitInt(int from, int to)
public int getAs18BitInt(int from, int to)
public int getAs27BitInt(int from, int to)
public int getAs28BitInt(int from, int to)
public String getString(int fromIndex, int toIndex)
fromIndex
- begin index (inclusive)toIndex
- end index (inclusive)Copyright (C) 2010-2017 Java Marine API authors. All Rights Reserved.