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 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.IOExceptionpublic void readFromStream(java.io.DataInput dataIn)
throws java.io.IOException
dataIn - java.io.IOExceptionCopyright © 2005-2014 Red Hat, Inc.. All Rights Reserved.