📄 tozxtable.java
字号:
package net.aetherial.gis.output.toTable.zouxiang;
import net.aetherial.gis.jiaotongbu.input.analyse.OpenDirect;
import java.io.File;
import net.aetherial.gis.output.toTable.readglj.ReadAll;
import java.util.Vector;
import net.aetherial.gis.surface.CreateFile;
import net.aetherial.gis.our.FrameOur;
import net.aetherial.gis.surface.ItemValue;
/**
* <p>Title: </p>
*
* <p>Description: </p>
*
* <p>Copyright: Copyright (c) 2004</p>
*
* <p>Company: </p>
*
* @author not attributable
* @version 1.0
*/
public class ToZXTable {
private String inputPath = "";
private String xianName = "";
private String n = "";
private String outputPath = "";
private FrameOur fo = null;
public ToZXTable() {
}
public void run(){
OpenDirect od = new OpenDirect();
od.setGradeStr("县道|乡道");
ReadAll rf = new ReadAll();
rf.read();
Vector xianLd = ReadAll.selectLdRow(this.xianName);
File[] files = od.getAllGPSFiles(this.inputPath);
if (this.fo == null) {
this.fo = new FrameOur();
}
ItemValue.setShowDialogMessage(false);
TxtElement txt = null;
for (int i = 0; files != null && i < files.length; i++) {
txt = new TxtElement(this.fo,files[i]);
txt.setGlj_luduans(xianLd);
txt.getText();
n += txt + "\r\n";
}
this.createTxt();
}
private void createTxt(){
CreateFile cf = new CreateFile(new File((new File(this.outputPath)).getAbsolutePath() + "\\年报核对表\\程序输出信息\\7_路线走向确认信息.txt"));
cf.setEncode("GB2312");
cf.memoryToFile(n);
}
public static void main(String[] args) {
ToZXTable tozxtable = new ToZXTable();
tozxtable.setXianName(args[0]);
tozxtable.setInputPath(args[1]);
tozxtable.setOutputPath(args[2]);
tozxtable.run();
}
public void setInputPath(String inputPath) {
this.inputPath = inputPath;
}
public void setOutputPath(String outputPath) {
this.outputPath = outputPath;
}
public void setXianName(String xianName) {
this.xianName = xianName;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -