|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IBitWriter
Interface for writing bits (e.g. to OutputStream, RandomFileAccess, etc.)
| Method Summary | |
|---|---|
void |
flush()
Flush internal buffers to underlying layer |
void |
writeBits(long b,
int len)
Writes len bits of the given value
b |
void |
writeBits(long b,
int off,
int len)
Writes len bits of the given value
b |
void |
writeDouble(double x)
Write given double in 64 bits |
void |
writeFloat(float x)
Write given float in 32 bits |
void |
writeInt(int x)
Write given int in 32 bits |
void |
writeLong(long x)
Write given long in 64 bits |
| Method Detail |
|---|
void writeBits(long b,
int len)
throws IOException
len bits of the given value
b starting from bit offset 0.
- Parameters:
b - bits to writelen - number of bits from value b to write
- Throws:
IOException - if an I/O error occurs.
void writeBits(long b,
int off,
int len)
throws IOException
len bits of the given value
b starting from bit offset off.
- Parameters:
b - bits to writeoff - number of bits from the given value b to skiplen - number of bits from the given value b to write
starting from off-th bit
- Throws:
IOException - if an I/O error occurs.
void writeInt(int x)
throws IOException
x - int value to write
IOException - if an I/O error occurs.
void writeLong(long x)
throws IOException
x - long value to write
IOException - if an I/O error occurs.
void writeFloat(float x)
throws IOException
x - float value to write
IOException - if an I/O error occurs.
void writeDouble(double x)
throws IOException
x - double value to write
IOException - if an I/O error occurs.
void flush()
throws IOException
IOException - if an I/O error occurs.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||