public class BitArray extends Object implements Serializable
| Constructor and Description | 
|---|
| BitArray() | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | get(int index) | 
| long | getBits() | 
| int | length() | 
| void | readFromStream(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(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(DataOutput dataOut) throws IOException
dataOut - IOExceptionpublic void readFromStream(DataInput dataIn) throws IOException
dataIn - IOExceptionCopyright © 2005–2015 FuseSource, Corp.. All rights reserved.