edu.ksu.cis.projects.bogor.util
Class BitBuffer
java.lang.Object
edu.ksu.cis.projects.bogor.util.BitBuffer
public class BitBuffer
- extends Object
- Version:
- CVS $Revision: 1.6 $ $Date: 2005/05/31 14:42:37 $
- Author:
- Robby, Matt Hoosier
BitBuffer
public BitBuffer(int initialCapacity)
BitBuffer
public BitBuffer()
getLastPos
public int getLastPos()
setPos
public void setPos(int pos)
append
public void append(boolean isOne)
append
public void append(byte value)
append
public void append(char value)
append
public void append(short value)
append
public void append(int value)
append
public void append(long value)
append
public void append(long value,
int bitLength)
append
public void append(float value)
append
public void append(double value)
append
public void append(byte[] value)
append
public void append(BitBuffer other)
ensureCapacity
public void ensureCapacity(int additionalBits)
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object other)
- Compare two
BitBuffer
instances for semantic
equivalence. Two bitbuffers are logically equal
if they store the same number of bits and for each
bit offset, the contained values are identical.
- Overrides:
equals
in class Object
get
public boolean get(int pos)
set
public void set(int pos,
boolean isOne)
toByteArray
public byte[] toByteArray()
toString
public String toString()
- Overrides:
toString
in class Object