|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IBitReader
Interface for reading bits (e.g. from InputStream, RandomFileAccess etc.)
Method Summary | |
---|---|
int |
readBitsAsInt(int numOfBits)
Reads the given number of bits and interprets them as int. |
long |
readBitsAsLong(int numOfBits)
Reads the given number of bits and interprets them as long |
double |
readDouble()
Reads 64 bits and interprets them as double. |
float |
readFloat()
Reads 32 bits and interprets them as float. |
int |
readInt()
Reads 32 bits and interprets them as int. |
long |
readLong()
Reads 64 bits and interprets them as long. |
Method Detail |
---|
long readBitsAsLong(int numOfBits) throws IOException
numOfBits
- number of bits to read. Has to be in the range from 1 to 64.
IOException
- if an I/O error occurs.int readBitsAsInt(int numOfBits) throws IOException
numOfBits
- number of bits to read. Has to be in the range from 1 to 31.
IOException
- if an I/O error occurs.int readInt() throws IOException
IOException
- if an I/O error occurs.long readLong() throws IOException
IOException
- if an I/O error occurs.float readFloat() throws IOException
IOException
- if an I/O error occurs.double readDouble() 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 |