/** * Returns the integer value formed by the n next bits (up to 8 bits). * * @param n the number of bits read (up to 8) * @return The value formed by the n bits, or -1 if the end of the stream has been reached */ long nextBits(final int n) throws IOException { return readBits(n); }
/** * Returns the next bit. * * @return The next bit (0 or 1) or -1 if the end of the stream has been reached */ int nextBit() throws IOException { return (int) readBits(1); }
int nextByte() throws IOException { return (int) readBits(8); } }
int nextByte() throws IOException { return (int) readBits(8); } }
/** * Returns the next bit. * * @return The next bit (0 or 1) or -1 if the end of the stream has been reached */ int nextBit() throws IOException { return (int) readBits(1); }
/** * Returns the integer value formed by the n next bits (up to 8 bits). * * @param n the number of bits read (up to 8) * @return The value formed by the n bits, or -1 if the end of the stream has been reached */ long nextBits(final int n) throws IOException { return readBits(n); }