Lines Matching defs:file
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
14 * version 2 for more details (a copy is included in the LICENSE file that
26 package java.nio.file;
28 import java.nio.file.attribute.BasicFileAttributes;
33 * {@link Files#walkFileTree Files.walkFileTree} methods to visit each file in
34 * a file tree.
37 * Suppose we want to delete a file tree. In that case, each directory should
43 * public FileVisitResult visitFile(Path file, BasicFileAttributes attrs)
46 * Files.delete(file);
63 * <p> Furthermore, suppose we want to copy a file tree to a target location.
86 * public FileVisitResult visitFile(Path file, BasicFileAttributes attrs)
89 * Files.copy(file, target.resolve(source.relativize(file)));
123 * Invoked for a file in a directory.
125 * @param file
126 * a reference to the file
128 * the file's basic attributes
135 FileVisitResult visitFile(T file, BasicFileAttributes attrs)
139 * Invoked for a file that could not be visited. This method is invoked
140 * if the file's attributes could not be read, the file is a directory
143 * @param file
144 * a reference to the file
146 * the I/O exception that prevented the file from being visited
153 FileVisitResult visitFileFailed(T file, IOException exc)