public class FileHierarchyTracer extends Object
| コンストラクタと説明 |
|---|
FileHierarchyTracer() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
protected void |
doTrace(File currentDir,
FileHierarchyTracingHandler handler) |
protected void |
orderListFiles(File[] listFiles) |
void |
trace(File rootDir,
FileHierarchyTracingHandler handler)
Trace the files in the hierarchy from the root directory.
|
public void trace(File rootDir, FileHierarchyTracingHandler handler)
tracer.trace(srcDir, new FileHierarchyTracingHandler() {
public boolean isTargetFileOrDir(File currentFile) {
return currentFile.isDirectory() || currentFile.getName().endsWith(".java");
}
public void handleFile(File currentFile) {
...
}
}
rootDir - The directory for root to trace files. (NotNull)handler - The handler of tracing. (NotNull)FileHierarchyTracingIOFailureException - When it fails by IO failure.protected void doTrace(File currentDir, FileHierarchyTracingHandler handler) throws IOException
IOExceptionprotected void orderListFiles(File[] listFiles)
Copyright © 2014–2015 The DBFlute Project. All rights reserved.