public void readFields(DataInput in) throws IOException {
   resetForm();
   RAMDirectoryUtil.readRAMFiles(in, dir);
 }
  public void write(DataOutput out) throws IOException {

    String[] files = dir.listAll();
    RAMDirectoryUtil.writeRAMFiles(out, dir, files);
  }