| java.lang.Object org.apache.harmony.security.asn1.BitString
BitString | final public class BitString (Code) | | Represents ASN.1 bit string value
See Also: http://asn1.elibel.tm.fr/en/standards/index.htm |
Field Summary | |
final public byte[] | bytes Sequence of bits padded with unused bits. | final public int | unusedBits Number of unused bits in the last byte. |
Constructor Summary | |
public | BitString(byte[] bytes, int unusedBits) | public | BitString(boolean[] values) |
unusedBits | final public int unusedBits(Code) | | Number of unused bits in the last byte.
|
BitString | public BitString(byte[] bytes, int unusedBits)(Code) | | Constructs bit string
Parameters: bytes - - array of bytes that represents bit string,including unused bits Parameters: unusedBits - - number of unused bits throws: IllegalArgumentException - - if parameters are invalid |
BitString | public BitString(boolean[] values)(Code) | | Constructs bit string from array of booleans
Parameters: values - - array of booleans |
getBit | public boolean getBit(int bit)(Code) | | |
setBit | public void setBit(int bit, boolean value)(Code) | | |
toBooleanArray | public boolean[] toBooleanArray()(Code) | | |
|
|