Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_BUFFER_SIZE |
Constructor and Description |
---|
BitOutputStream(OutputStream os) |
public static final int DEFAULT_BUFFER_SIZE
public BitOutputStream(OutputStream os)
public void flush() throws IOException
flush
in interface Flushable
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public int writeBit(int bit) throws IOException
IOException
public int writeInt(int x, int len) throws IOException
IOException