📄 scanfile.java
字号:
package net.aetherial.gis.our.auto.deal;
import java.io.File;
/**
* <p>Title: </p>
*
* <p>Description: </p>
*
* <p>Copyright: Copyright (c) 2004</p>
*
* <p>Company: </p>
*
* @author not attributable
* @version 1.0
*/
public class ScanFile {
private String fatherDirect = null;
public ScanFile() {
}
public void setInputPath(String Direct) {
this.fatherDirect = Direct;
}
/**
* 得到乡村目录下的文件数组
*/
public File[] getXiangcun() {
if (! (this.fatherDirect.equals(""))) {
File f = new File(this.fatherDirect + "乡村\\");
if (f.exists()) {
return f.listFiles();
}
else {
return null;
}
}
else {
return null;
}
}
/**
* 得到国道目录下的文件数组
*/
public File[] getGuodao() {
if (! (this.fatherDirect.equals(""))) {
File f = new File(this.fatherDirect + "国\\");
if (f.exists()) {
return f.listFiles();
}
else {
return null;
}
}
else {
return null;
}
}
/**
* 得到省道目录下的文件数组
*/
public File[] getShengdao() {
if (! (this.fatherDirect.equals(""))) {
File f = new File(this.fatherDirect + "省\\");
if (f.exists()) {
return f.listFiles();
}
else {
return null;
}
}
else {
return null;
}
}
/**
* 得到县道目录下的文件数组
*/
public File[] getXiandao() {
if (! (this.fatherDirect.equals(""))) {
File f = new File(this.fatherDirect + "县\\");
if (f.exists()) {
return f.listFiles();
}
else {
return null;
}
}
else {
return null;
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -