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

📄 allfiletoxzc.java

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

import net.aetherial.gis.surface.ItemValue;
import java.io.File;
import net.aetherial.gis.surface.CreateFile;
import net.aetherial.gis.our.FrameOur;
import net.aetherial.gis.our.auto.CutByRS;
import net.aetherial.gis.our.auto.Auto;

/**
 * <p>Title: </p>
 *
 * <p>Description: </p>
 *
 * <p>Copyright: Copyright (c) 2004</p>
 *
 * <p>Company: </p>
 *
 * @author not attributable
 * @version 1.0
 */
public class AllFileToXZC extends Auto{
  public AllFileToXZC(FrameOur fo) {
    this.setFrameOur(fo);
  }
  private String directory = "";
private String n = "";

public void setSavedDirectory(String path){
  this.directory = path;
}
public void openCutAllFile() {
  if (super.input == null) {
    System.out.println("super.input == null");
    return;
  }
  for (int i = 0; i < this.input.length; i++) {
    this.open(this.input[i]);
    CutByRS cb = new CutByRS(this.getFrameOur());
    //cb.getTrackRSToString();
    cb.getTrackRSToThis();
    this.n = this.n + this.input[i].getName() +
        "********************************************************\r\n";
    this.n = this.n + cb.getString();
    this.saveMemory(this.directory + this.input[i].getName());
    this.setMemoryReset();
    cb = null;
  }
  this.createLog(this.directory + "log//"+ItemValue.getDayTimeNumber() + ".log");
  this.msg("文件切割完毕!");
}

private void setAllToXZC(){

}
private void createDirectory(String direct){
  File f = new File(direct);
  if(!(f.exists())){
    f.mkdir();
  }
}
private void createLog(String logFile){
  this.createDirectory((new File(logFile)).getParent());
  CreateFile cf = new CreateFile(new File(logFile));
  cf.setEncode("GB2312");
  cf.memoryToFile(this.n);
}

}

⌨️ 快捷键说明

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