com.beetle.framework.util.file
类 Dir

java.lang.Object
  继承者 com.beetle.framework.util.file.Dir

public class Dir
extends java.lang.Object


构造方法摘要
Dir()
           
 
方法摘要
static java.util.List getCurrentDirectoryFileNames(java.lang.String dirPath, boolean includePath)
          列出某个目录下所有的文件名
static java.util.List getCurrentDirectoryFileNames(java.lang.String dirPath, boolean includePath, java.lang.String suffixname)
          列出某个目录下所有的文件名
static void main(java.lang.String[] args)
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

Dir

public Dir()
方法详细信息

getCurrentDirectoryFileNames

public static final java.util.List getCurrentDirectoryFileNames(java.lang.String dirPath,
                                                                boolean includePath)
列出某个目录下所有的文件名

参数:
dirPath -
includePath - -true文件名包含路径,false不带路径
返回:

getCurrentDirectoryFileNames

public static final java.util.List getCurrentDirectoryFileNames(java.lang.String dirPath,
                                                                boolean includePath,
                                                                java.lang.String suffixname)
列出某个目录下所有的文件名

参数:
dirPath -
includePath - '.txt'
返回:

main

public static void main(java.lang.String[] args)