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;
34 * An object that may be used to locate a file in a file system. It will
35 * typically represent a system dependent file path.
38 * sequence of directory and file name elements separated by a special separator
39 * or delimiter. A <em>root component</em>, that identifies a file system
41 * from the root of the directory hierarchy is the name of a file or directory.
45 * solely of one name element that is empty. Accessing a file using an
47 * file system. {@code Path} defines the {@link #getFileName() getFileName},
64 * those developing custom file system implementations. Methods may be added to
70 * java.io.BufferedReader} to read text from a file "{@code access.log}". The
71 * file is located in a directory "{@code logs}" relative to the current working
80 * java.nio.file.spi.FileSystemProvider provider} are generally interoperable
86 * be used to operate on the same file as the {@code java.io.File} object. In
102 * Returns the file system that created this object.
104 * @return the file system that created this object
112 * with other path information in order to locate a file.
128 * Returns the name of the file or directory denoted by this path as a
129 * {@code Path} object. The file name is the <em>farthest</em> element from
132 * @return a path representing the name of the file or directory, or
144 * does not access the file system; the path or its parent may not exist.
227 * component of the given path is file system specific. If this path does
272 * root component of the given path is file system specific. If this path
313 * <em>redundant</em> name elements. In many file systems, the "{@code .}"
315 * and parent directory. In such file systems all occurrences of "{@code .}"
321 * <p> This method does not access the file system; the path may not locate
322 * a file that exists. Eliminating "{@code ..}" and a preceding name from a
323 * path may result in the path that locates a different file than the original
382 * path. This is useful where a file name needs to be <i>replaced</i> with
383 * another file name. For example, suppose that the name separator is
424 * path that locates the same file as the given path. For example, on UNIX,
442 * the {@link Files#isSameFile same} file as {@code other} is implementation
446 * dependent if {@code "a/b/../x"} would locate the same file as {@code "/a/x"}.
475 * of the resulting URI. In the case of the default provider, and the file
476 * exists, and it can be determined that the file is a directory, then the
491 * <p> When a file system is constructed to access the contents of a file
492 * as a file system then it is highly implementation specific if the returned
493 * URI represents the given path in the file system or it represents a
494 * <em>compound</em> URI that encodes the URI of the enclosing file system.
502 * file system is constructed to access the contents of a file as
503 * a file system, and the URI of the enclosing file system cannot be
520 * against a file system default directory. Depending on the implementation,
521 * this method may throw an I/O error if the file system is not accessible.
537 * Returns the <em>real</em> path of an existing file.
541 * path that locates the {@link Files#isSameFile same} file as this path, but
543 * and the file. For example, where filename comparisons on a file system
562 * will locate the same file as this path.
567 * @return an absolute path represent the <em>real</em> path of the file
571 * if the file does not exist or an I/O error occurs
575 * method is invoked to check read access to the file, and where
603 * Registers the file located by this path with a watch service.
630 * <p> Where a file is registered with a watch service by means of a symbolic
651 * if the file is registered to watch the entries in a directory
652 * and the file is not a directory <i>(optional specific exception)</i>
658 * method is invoked to check read access to the file.
667 * Registers the file located by this path with a watch service.
699 * If the file is registered to watch the entries in a directory
700 * and the file is not a directory <i>(optional specific exception)</i>
706 * method is invoked to check read access to the file.
721 * is the name of the file or directory denoted by this path. The {@link
734 * provider, platform specific. This method does not access the file system
735 * and neither file is required to exist.
738 * with different file system providers.
759 * <p> Whether or not two path are equal depends on the file system
762 * file system and the file is not required to exist. Where required, the
764 * paths locate the same file.