readgljsuidao.java

来自「基于Java的地图数据管理软件。使用MySQL数据库管理系统。」· Java 代码 · 共 55 行

JAVA
55
字号
package net.aetherial.gis.jiaotongbu.output.tocheck.read;

import net.aetherial.gis.jiaotongbu.outputJTB.txtOutput.module.excel.ReadRecord;
import jxl.Sheet;
import net.aetherial.gis.jiaotongbu.outputJTB.txtOutput.module.excel.SheetItem;
import net.aetherial.gis.jiaotongbu.output.tocheck.type.GljSuidao;
import net.aetherial.gis.jiaotongbu.output.tocheck.PermanenceBubao;
/**
 * <p>Title: </p>
 *
 * <p>Description: </p>
 *
 * <p>Copyright: Copyright (c) 2004</p>
 *
 * <p>Company: </p>
 *
 * @author not attributable
 * @version 1.0
 */
public class ReadGljSuidao extends ReadRecord{
  public ReadGljSuidao(Sheet sheet) {
    super(sheet);
    if (sheet == null) {
      SheetItem si = new SheetItem();
      si.setSuiDao("file\\glj\\gljSuidao.xls");
      this.setSheet(si.getSheet_sd());
    }
    this.setRow(2);

  }
  public void read(){
    GljSuidao ql = null;
    for (int i = 0;(!this.isEmptyrow()) && i < 10000; i++) {
      ql = new GljSuidao();
      ql.setData(this.rowData);
      if (ql.isThisXian()) {
        PermanenceBubao.gljSuidao.add(ql);
      }
      this.moveNext();
    }
  }

  private void printRead(){
    for (int i = 0; i < PermanenceBubao.gljSuidao.size(); i++) {
      System.out.println((GljSuidao)PermanenceBubao.gljSuidao.get(i));
    }
  }
  public static void main(String[] args) {
    ReadGljSuidao readgljqiaoliang = new ReadGljSuidao(null);
    readgljqiaoliang.read();
    readgljqiaoliang.printRead();
  }

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?