@Override public void put(long index,int value){
  index<<=2;
  if (index < fileLength) {
    final ByteBuffer buf=buffers[getWhichBuffer(index)];
    int indexBuffer=getIndexInBuffer(index);
    buf.put(indexBuffer++,(byte)(value >> 24));
    buf.put(indexBuffer++,(byte)(value >> 16));
    buf.put(indexBuffer++,(byte)(value >> 8));
    buf.put(indexBuffer,(byte)(value));
  }
 else {
    throw new ArrayIndexOutOfBoundsException("" + index);
  }
}

@ Override public void put ( long index , int value ) { index <<= 2 ; if ( index < fileLength ) { final ByteBuffer buf = buffers [ getWhichBuffer ( index ) ] ; int indexBuffer = getIndexInBuffer ( index ) ; buf . put ( indexBuffer ++ , ( byte ) ( value > > 24 ) ) ; buf . put ( indexBuffer ++ , ( byte ) ( value > > 16 ) ) ; buf . put ( indexBuffer ++ , ( byte ) ( value > > 8 ) ) ; buf . put ( indexBuffer , ( byte ) ( value ) ) ; } else { throw new ArrayIndexOutOfBoundsException ( "" + index ) ; } }
puts value for given index
