|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectCSD
class CSD
Class used to convert a binary representation into a CSD representation
Field Summary | |
---|---|
private int |
bitIndex
|
private Representation |
decimalRepresentation
|
private Representation |
fractionRepresentation
|
private int[] |
fullRep
|
private int |
numberBits
|
Constructor Summary | |
---|---|
CSD(Holder holder)
CSD class constructor |
Method Summary | |
---|---|
void |
convertToCSD()
Convert a normal representation into a CSD representation. |
private int[] |
createReplacementRun(int count)
Create an array of integers destined to replace the run in the representation. |
private boolean |
peekForOne()
Peek to see if there is another one in the representation |
private boolean |
replaceRun()
Scans the representation replacing any runs of ones found |
private int |
scanForOne()
Scan representation for the next one bit |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private Representation decimalRepresentation
private Representation fractionRepresentation
private int numberBits
private int[] fullRep
private int bitIndex
Constructor Detail |
---|
public CSD(Holder holder)
holder
- Holder object that will be manipulatedMethod Detail |
---|
private int scanForOne()
private boolean peekForOne()
private int[] createReplacementRun(int count)
count
- is the number of ones in the run
private boolean replaceRun()
public void convertToCSD()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |