📄 readtongda.java
字号:
package net.aetherial.gis.test.tools.bian2;
import net.aetherial.gis.jiaotongbu.outputJTB.txtOutput.module.excel.ReadRecord;
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 ReadTongda extends ReadRecord{
public ReadTongda(String bianhaoFile) {
super(null);
ReadSheet rs = new ReadSheet();
rs.setSheetFile(bianhaoFile,0);
// rs.setSheetFile(bianhaoFile,"市县乡镇建制村");
// si.setQiaoliangFangxiang(fangxiangFile);
this.setSheet(rs.getMySheet());
this.setRow(2);
}
public void read(){
TongdaRow record = null;
for (int i = 0;(!this.isEmptyrow()) && i < 60000; i++) {
if (this.rowData != null) {
record = new TongdaRow();
record.setValue(this.rowData);
Permanence.tongda.add(record);
// for (int j = 0; j < this.rowData.length; j++) {
// System.out.print(this.rowData[j].getContents());
// }
// System.out.println("");
// System.exit(0);
}
this.moveNext();
}
}
public static void main(String args[]){
ReadTongda read = new ReadTongda("C:\\Documents and Settings\\Administrator\\桌面\\编码\\11.xls");
read.read();
Permanence.printTongda();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -