Package eu.svjatoslav.commons.data
Class BitOutputStream
java.lang.Object
eu.svjatoslav.commons.data.BitOutputStream
Write individual bits to the output stream.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Finish writing the last byte.void
storeBits
(int data, int bitCount) Write bits to the output stream.
-
Constructor Details
-
BitOutputStream
-
-
Method Details
-
finishByte
Finish writing the last byte.- Throws:
IOException
- If an I/O error occurs.
-
storeBits
Write bits to the output stream.- Parameters:
data
- Data to write.bitCount
- Number of bits to write.- Throws:
IOException
- If an I/O error occurs.
-