Package org.bouncycastle.oer
Class BitBuilder
java.lang.Object
org.bouncycastle.oer.BitBuilder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidpad()intwrite(OutputStream outputStream) voidwrite7BitBytes(int value) voidwrite7BitBytes(BigInteger value) intwriteAndClear(OutputStream outputStream) writeBit(int bit) write a bitwriteBits(long value, int start) writeBits(long value, int start, int len) voidzero()
-
Constructor Details
-
BitBuilder
public BitBuilder()
-
-
Method Details
-
writeBit
write a bit- Parameters:
bit- where 0 = 0 bit and not zero is 1 bit.- Returns:
-
writeBits
-
writeBits
-
write
- Throws:
IOException
-
writeAndClear
- Throws:
IOException
-
pad
public void pad() -
write7BitBytes
public void write7BitBytes(int value) -
write7BitBytes
-
zero
public void zero()
-