类 FileDepthFirstSearchUtils


  • public final class FileDepthFirstSearchUtils
    extends java.lang.Object
    detail: 文件深度优先搜索算法 ( 递归搜索某个目录下的全部文件 )
    作者:
    Ttt
    • 构造器详细资料

      • FileDepthFirstSearchUtils

        public FileDepthFirstSearchUtils()
        构造函数
    • 方法详细资料

      • isRunning

        public boolean isRunning()
        是否搜索中
        返回:
        true 搜索 / 运行中, false 非搜索 / 运行中
      • stop

        public void stop()
        停止搜索
      • isStop

        public boolean isStop()
        是否停止搜索
        返回:
        true 已停止搜索, false 搜索中
      • getStartTime

        public long getStartTime()
        获取开始搜索时间 ( 毫秒 )
        返回:
        开始搜索时间 ( 毫秒 )
      • getEndTime

        public long getEndTime()
        获取结束搜索时间 ( 毫秒 )
        返回:
        结束搜索时间 ( 毫秒 )
      • query

        public void query​(java.lang.String path,
                          boolean isRelation)
        搜索目录
        参数:
        path - 根目录路径
        isRelation - 是否关联到 Child List