|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectkrb5.lib.BitString
public class BitString
Class Description : Bit String class. A modified version of the code obtained from the Open Group Research Institute.
| Constructor Summary | |
|---|---|
BitString(byte[] data,
int new_size)
Class constructor |
|
BitString(int i)
Class constructor |
|
| Method Summary | |
|---|---|
void |
clear(int bit)
Clears a bit |
java.lang.Object |
clone()
Clones this object |
boolean |
get(int bit)
Get a bit |
boolean |
match(BitString other,
int bit)
Check whether two BitStrings match |
void |
set(int bit)
Set a bit |
int |
size()
Returns size of the BitString |
byte[] |
toBytes()
Converts BitString to bytes |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BitString(int i)
public BitString(byte[] data,
int new_size)
throws KrbException
data - byte[]new_size - int
KrbException| Method Detail |
|---|
public java.lang.Object clone()
clone in class java.lang.Object
public void clear(int bit)
throws KrbException
bit - int
KrbException
public boolean get(int bit)
throws KrbException
bit - int
KrbException
public void set(int bit)
throws KrbException
bit - int
KrbExceptionpublic int size()
public boolean match(BitString other,
int bit)
throws KrbException
other - BitStringbit - int
KrbException
public byte[] toBytes()
throws KrbException
KrbException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||