public int getInteger ( int len ) throws IOException { BigInteger result = getBigInteger ( len , false ) ; if ( result . compareTo ( BigInteger . valueOf ( Integer . MIN_VALUE ) ) < 0 ) { throw new IOException ( "Integer below minimum valid value" ) ; } if ( result . compareTo ( BigInteger . valueOf ( Integer . MAX_VALUE ) ) > 0 ) { throw new IOException ( "Integer exceeds maximum valid value" ) ; } return result . intValue ( ) ; }
Returns the integer which takes up the specified number of bytes in this buffer .