📄 readbianmabiao.java
字号:
package net.aetherial.gis.test.tools.bian1;
import net.aetherial.gis.jiaotongbu.outputJTB.txtOutput.module.excel.ReadRecord;
import net.aetherial.gis.jiaotongbu.outputJTB.txtOutput.module.excel.SheetItem;
import net.aetherial.gis.publicuse.excel.ReadSheet;
/**
* <p>Title: </p>
*
* <p>Description: </p>
*
* <p>Copyright: Copyright (c) 2004</p>
*
* <p>Company: </p>
*
* @author not attributable
* @version 1.0
*/
public class ReadBianmaBiao extends ReadRecord{
public ReadBianmaBiao(String bianhaoFile) {
super(null);
ReadSheet rs = new ReadSheet();
rs.setSheetFile(bianhaoFile,"市县乡镇建制村");
// si.setQiaoliangFangxiang(fangxiangFile);
this.setSheet(rs.getMySheet());
this.setRow(2);
}
public void read(){
ShiXianXiangCun record = null;
for (int i = 0;(!this.isEmptyrow()) && i < 2000; i++) {
if (this.rowData != null) {
record = new ShiXianXiangCun();
record.setValue(this.rowData);
Permanence.shixianxiangcun.add(record);
}
this.moveNext();
}
}
public static void main(String args[]){
ReadBianmaBiao read = new ReadBianmaBiao("C:\\Documents and Settings\\Administrator\\桌面\\编码\\安徽省行政区划代码及县区名称比较表.xls");
read.read();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -