📄 readgljsuidao.java
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -