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.IOExceptionpublic void writeLongBits(long value,
int count)
throws java.io.IOException
java.io.IOExceptionprotected void flush()
throws java.io.IOException
java.io.IOExceptionpublic void close()
throws java.io.IOException
java.io.IOExceptionpublic static void main(java.lang.String... args)
throws java.lang.Exception
java.lang.Exceptionpublic static void test2()
throws java.lang.Exception
java.lang.Exceptionpublic static void test1()
throws java.lang.Exception
java.lang.Exception