public class FileVisitor extends Object
Constructor and Description |
---|
FileVisitor() |
Modifier and Type | Method and Description |
---|---|
static String |
basename(String fname) |
void |
visit(File f)
Central entry method.
|
void |
visitDir_post(File f)
To be overwritten, if appropriate.
|
void |
visitDir_pre(File f)
To be overwritten, if appropriate.
|
void |
visitDir(File f)
Is called for all files which are directories.
|
void |
visitNonDir(File f)
To be overwritten, if appropriate.
|
public void visit(File f)
visitNonDir(File)
or visitDir(File)
,
depending on the file's type.public void visitDir(File f)
visitDir_pre(File)
for this file,
then descends all files in the directory calling visit(File)
,
then calls visitDir_post(File)
public void visitDir_pre(File f)
public void visitDir_post(File f)
public void visitNonDir(File f)
see also the complete user documentation .