public Bits peek ( final int bits ) throws IOException { final int additionalBitsNeeded = bits - this . remainder . bitLength ; final int additionalBytesNeeded = ( int ) Math . ceil ( additionalBitsNeeded / 8. ) ; if ( additionalBytesNeeded > 0 ) this . readAhead ( additionalBytesNeeded ) ; return this . remainder . range ( 0 , Math . min ( bits , this . remainder . bitLength ) ) ; }
Peek bits .