org.apache.activemq.util
public class BitArray extends java.lang.Object implements java.io.Serializable
Constructor and Description |
---|
BitArray() |
Modifier and Type | Method and Description |
---|---|
boolean |
get(int index) |
long |
getBits() |
int |
length() |
void |
readFromStream(java.io.DataInput dataIn)
read the bits from an input stream
|
void |
reset()
reset all the bit values to false
|
void |
reset(long bits)
reset all the bits to the value supplied
|
boolean |
set(int index,
boolean flag)
set the boolean value at the index
|
void |
writeToStream(java.io.DataOutput dataOut)
write the bits to an output stream
|
public BitArray()
public int length()
public long getBits()
public boolean set(int index, boolean flag)
index
- flag
- public boolean get(int index)
index
- public void reset()
public void reset(long bits)
bits
- public void writeToStream(java.io.DataOutput dataOut) throws java.io.IOException
dataOut
- java.io.IOException
public void readFromStream(java.io.DataInput dataIn) throws java.io.IOException
dataIn
- java.io.IOException
Copyright © 2005-2014. All Rights Reserved.