File Visitor Flashcards
Invoked just before the elements of the directory are accessed
preVisitDirectory
Invoked when a file is visited.
visitFile
Invoked when all the elements of a directory are accessed.
postVisitDirectory
Invoked when the file cannot be accessed
visitFileFailed
Paramater to FileVisitor that indicates the depth to travel.
MAX_VALUE
Class that must be extended if you do not want to implement all methods of the FileVisitor interface.
SimpleFileVisitor
Return value that indicates that the walk through the file tree should continue.
CONTINUE
Return value that indicates that the walk through the tree should be terminated immediately.
TERMINATE
Return value that indicates that the rest of the subtree should be skipped.
SKIP_SUBTREE
Return value that indicates that the walk should be stopped for the current directory and its sibling directory.
SKIP_SIBLINGS