|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface provices processing operations for identified bits.
Method Summary | |
---|---|
void |
addBit(int bitStart,
int bitEnd,
int bitValue)
Add the bit to the current byte. |
int |
getBitEndIndex(int number)
Get the index of the end of the given bit number. |
void |
getBitNumber(int index,
int[] pos)
Get the bit number at the given position in the sample. |
int |
getBitStartIndex(int number)
Get the index of the start of the given bit number. |
int |
getBitValue(int index)
Get the bit value at the given position in the sample. |
int |
getFirstBitStartIndex()
Get the index of the start of the first bit found in the sample. |
int |
getLastBitEndIndex()
Get the index of the end of the last bit extracted from the sample. |
int |
getLastBitValue()
Get the value of the last bit extracted. |
int |
getNumberOfBits()
Get the number of bits processed. |
void |
initialize()
Initialize this object ready for processing a sample. |
int |
undoLastBit()
Undo the last bit that was processed. |
Method Detail |
public void initialize()
public void addBit(int bitStart, int bitEnd, int bitValue)
bitStart
- The start of the bit.bitEnd
- The end of the bit.bitValue
- The bit value.public int undoLastBit()
public int getBitValue(int index)
index
- The index.
public void getBitNumber(int index, int[] pos)
index
- The index.pos
- An array which will contain the bit number and offset from the start of the bit.public int getBitStartIndex(int number)
number
- The bit number.
public int getBitEndIndex(int number)
number
- The bit number.
public int getLastBitValue()
public int getFirstBitStartIndex()
public int getLastBitEndIndex()
public int getNumberOfBits()
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |