public class BitOutputStream
extends java.lang.Object
Constructor and Description |
---|
BitOutputStream(java.io.OutputStream out) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected void |
flush() |
int |
getPendingBits() |
static void |
main(java.lang.String... args) |
static void |
test1() |
static void |
test2() |
void |
writeBits(int value,
int count) |
void |
writeLongBits(long value,
int count) |
public int getPendingBits()
public void writeBits(int value, int count) throws java.io.IOException
java.io.IOException
public void writeLongBits(long value, int count) throws java.io.IOException
java.io.IOException
protected void flush() throws java.io.IOException
java.io.IOException
public void close() throws java.io.IOException
java.io.IOException
public static void main(java.lang.String... args) throws java.lang.Exception
java.lang.Exception
public static void test2() throws java.lang.Exception
java.lang.Exception
public static void test1() throws java.lang.Exception
java.lang.Exception