Package org.bouncycastle.oer
Class BitBuilder
java.lang.Object
org.bouncycastle.oer.BitBuilder
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
pad()
int
write
(OutputStream outputStream) void
write7BitBytes
(int value) void
write7BitBytes
(BigInteger value) int
writeAndClear
(OutputStream outputStream) writeBit
(int bit) write a bitwriteBits
(long value, int start) writeBits
(long value, int start, int len) void
zero()
-
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()
-