计算机二级

3773考试网计算机等级考试计算机二级正文

完整操作ini文件的Java类

来源:fjzsksw.com 2010-7-19 14:53:26

 

// end myAdd();

  public String[] myGet() {

  String[] value = new String[tagList.size()];

  String[] temp = new String[3];

  for (int i = 0; i < tagList.size(); i++) {

  System.arraycopy(tagList.get(i), 0, temp, 0, 2);

  value[i] = this.myGetOne(temp[0], temp[1]);

  }

  return value;

  }

  public void mySet() {

  String[] temp = new String[3];

  for (int i = 0; i < tagList.size(); i++) {

  System.arraycopy(tagList.get(i), 0, temp, 0, 3);

  try {

  this.mySetOne(temp[0], temp[1], temp[2]);

  } catch (Exception ioe) {

  }

  ;

  }

  }

  public ArrayList mySearchAll() {

  ArrayList tag = new ArrayList();

  String[] temp = new String[2];

  for (int i = 0; i < tagList.size(); i++) {

  System.arraycopy(tagList.get(i), 0, temp, 0, 2);

  tag.add(this.mySearch(temp[0], temp[1]));

  }

  return tag;

  }

  /**

  * @return the inList

  */

  public ArrayList getInList() {

  return inList;

  }

  /**

  * @param inList the inList to set

  */

  public void setInList(ArrayList inList) {

  this.inList = inList;

  }

  /**

  * @return the outList

  */

  public ArrayList getOutList() {

  return outList;

  }

  /**

  * @param outList the outList to set

  */

  public void setOutList(ArrayList outList) {

  this.outList = outList;

  }

  /**

  * @return the tagList

  */

  public ArrayList getTagList() {

  return tagList;

  }

  /**

  * @param tagList the tagList to set

  */

  public void setTagList(ArrayList tagList) {

  this.tagList = tagList;

  }

  }

 

 

上一页  [1] [2] [3] [4] 

触屏版 电脑版
3773考试网 琼ICP备12003406号-1