private int hashToInt(byte[] bytes,int start){
  DataInput input=new DataInputStream(new ByteArrayInputStream(bytes,start,bytes.length - start));
  int val;
  try {
    val=input.readInt();
  }
 catch (  IOException e) {
    throw new IllegalStateException(e);
  }
  return val;
}

private int hashToInt ( byte [ ] bytes , int start ) { DataInput input = new DataInputStream ( new ByteArrayInputStream ( bytes , start , bytes . length - start ) ) ; int val ; try { val = input . readInt ( ) ; } catch ( IOException e ) { throw new IllegalStateException ( e ) ; } return val ; }
grabs a positive integer value from the input array starting at the given offset .
