code: public synchronized void reset(short[] shortArray) throws IOException {
        _writer.flush();
        _writer.position(DATA_START_POSITION);
        for(int i = 0; i < shortArray.length; i++) {
            _writer.writeShort(shortArray[i]);
        }
        _writer.flush();
    }
docs: Resets this ArrayFile with the specified short array.
  
  @param shortArray - the short array.
  @throws IOException