Methods in this class may be overridden subject to their general contract.
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public FileVisitResult | postVisitDirectory(T dir, IOException exc)
Implements java. Invoked for a directory after entries in the directory, and all of their descendants, have been visited. |
| public FileVisitResult | preVisitDirectory(T dir, BasicFileAttributes attrs)
Implements java. Invoked for a directory before entries in the directory are visited. |
| public FileVisitResult | visitFile(T file, BasicFileAttributes attrs)
Implements java. Invoked for a file in a directory. |
| public FileVisitResult | visitFileFailed(T file, IOException exc)
Implements java. Invoked for a file that could not be visited. |
| SimpleFileVisitor | back to summary |
|---|---|
| protected SimpleFileVisitor() Initializes a new instance of this class. | |
| postVisitDirectory | back to summary |
|---|---|
| public FileVisitResult postVisitDirectory(T dir, IOException exc) throws IOException Implements java. Invoked for a directory after entries in the directory, and all of their descendants, have been visited. Unless overridden, this method returns
| |
| preVisitDirectory | back to summary |
|---|---|
| public FileVisitResult preVisitDirectory(T dir, BasicFileAttributes attrs) throws IOException Implements java. Invoked for a directory before entries in the directory are visited. Unless overridden, this method returns
| |
| visitFile | back to summary |
|---|---|
| public FileVisitResult visitFile(T file, BasicFileAttributes attrs) throws IOException Implements java. Invoked for a file in a directory. Unless overridden, this method returns
| |
| visitFileFailed | back to summary |
|---|---|
| public FileVisitResult visitFileFailed(T file, IOException exc) throws IOException Implements java. Invoked for a file that could not be visited. Unless overridden, this method re-throws the I/O exception that prevented the file from being visited.
| |