Class BitStreamWriter
- java.lang.Object
-
- com.sedmelluq.discord.lavaplayer.tools.io.BitStreamWriter
-
public class BitStreamWriter extends java.lang.ObjectHelper for writing a specific number of bits at a time to a stream.
-
-
Constructor Summary
Constructors Constructor Description BitStreamWriter(java.io.OutputStream stream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidflush()Flush the current byte even if there are remaining unused bits leftvoidwrite(long value, int bits)
-
-
-
Method Detail
-
write
public void write(long value, int bits) throws java.io.IOException- Parameters:
value- The value to take the bits from (lower order bits first)bits- Number of bits to write- Throws:
java.io.IOException- On write error
-
flush
public void flush() throws java.io.IOExceptionFlush the current byte even if there are remaining unused bits left- Throws:
java.io.IOException- On write error
-
-