⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 scanallfile.java

📁 基于Java的地图数据管理软件。使用MySQL数据库管理系统。
💻 JAVA
字号:
package net.aetherial.gis.output.toLd.test;

import net.aetherial.gis.output.toLd.OpenDirectory;
import java.io.File;
import net.aetherial.gis.surface.ItemValue;
import net.aetherial.gis.our.FrameOur;
import org.w3c.dom.Node;
/**
 * <p>Title: </p>
 *
 * <p>Description: </p>
 *
 * <p>Copyright: Copyright (c) 2004</p>
 *
 * <p>Company: </p>
 *
 * @author not attributable
 * @version 1.0
 */
public class ScanAllFile {
  private String inputPath = "";
  private String outputPath = "";
  private File[] allFile = null;
  private FrameOur fo = null;

  public ScanAllFile() {

  }
  public void run() {
    if (this.fo == null) {
      this.fo = new FrameOur();
    }
    OpenDirectory od = new OpenDirectory();
    allFile = od.getOpenFile(inputPath);

    ItemValue.setShowDialogMessage(false);
    if (allFile == null) {
      return;
    }
    for (int i = 0; i < allFile.length; i++) {
      this.fo.openFile(allFile[i]);
//      this.chaxun();
      this.findRoad("北葫路(北埂-葫芦地)");
      this.findRoad("西汤路(西风岭-汤沟)");
      this.fo.reset();
    }
  }

  private void findRoad(String raodName){
    Node[] trks = ItemValue.getTracks();
    if (trks != null) {
      for (int i = 0; i <trks .length; i++) {
        if (ItemValue.getTracksName(trks[i]).equals(raodName)) {
          System.out.println(raodName +":" + ItemValue.getTracksNumber(trks[i]));
        }
      }
    }
  }

  private void chaxun(){
    Node[] trks = ItemValue.getTracks();
    if (trks != null) {
      for (int i = 0; i < trks.length; i++) {
//        if (!ItemValue.getTracks_ld_number(trks[i]).trim().equals("")) {
          System.out.println(ItemValue.getTracksName(trks[i]) + ":" + ItemValue.getTracks_ld_number(trks[i]));
//        }
      }
    }
  }
  public void setInputPath(String inputPath) {
      this.inputPath = inputPath;
    }

    public void setOutputPath(String outputPath) {
      this.outputPath = outputPath;
  }
  public static void main(String[] args) {
    ScanAllFile scanallfile = new ScanAllFile();
    scanallfile.setInputPath("E:\\temp\\枞阳县\\1\\");
    scanallfile.run();
  }


}

⌨️ 快捷键说明

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