Package org.jppf.doc
Class FileExplorer
java.lang.Object
org.jppf.doc.FileExplorer
- Direct Known Subclasses:
AuthorsFileExplorer
- Author:
- Laurent Cohen
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassFile filter based on a set of extensions. -
Constructor Summary
ConstructorsConstructorDescriptionFileExplorer(File root, String... extensions) Intiialize this file explorer.FileExplorer(String root, String... extensions) Intiialize this file explorer. -
Method Summary
Modifier and TypeMethodDescriptionabstract voidafterExploreDir(File dir) Called after exploring a directory.abstract voidafterReadFile(File file, String content) Called before reading the content of the file currently explored.abstract voidbeforeExploreDir(File dir) Called before exploring a directory.abstract voidbeforeReadFile(File file) Called before reading the content of the file currently explored.voidexplore()
-
Constructor Details
-
FileExplorer
Intiialize this file explorer.- Parameters:
root- the root of the file hierarchy to explore.extensions- the accepted file extensions.
-
FileExplorer
Intiialize this file explorer.- Parameters:
root- the root of the file hierarchy to explore.extensions- the accepted file extensions.
-
-
Method Details
-
beforeReadFile
Called before reading the content of the file currently explored.- Parameters:
file- the file being explored.
-
afterReadFile
Called before reading the content of the file currently explored.- Parameters:
file- the file being explored.content- the file content as a string.
-
beforeExploreDir
Called before exploring a directory.- Parameters:
dir- the directory being explored.
-
afterExploreDir
Called after exploring a directory.- Parameters:
dir- the directory being explored.
-
explore
public void explore()
-