jdk/src/share/classes/java/nio/file/Path.java
changeset 11519 4cc0b4da6c36
parent 9789 49d6dba0d66b
child 12537 e206796f8175
equal deleted inserted replaced
11518:7e720dd82e9e 11519:4cc0b4da6c36
    70  * java.io.BufferedReader} to read text from a file "{@code access.log}". The
    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
    71  * file is located in a directory "{@code logs}" relative to the current working
    72  * directory and is UTF-8 encoded.
    72  * directory and is UTF-8 encoded.
    73  * <pre>
    73  * <pre>
    74  *     Path path = FileSystems.getDefault().getPath("logs", "access.log");
    74  *     Path path = FileSystems.getDefault().getPath("logs", "access.log");
    75  *     BufferReader reader = Files.newBufferedReader(path, StandardCharsets.UTF_8);
    75  *     BufferedReader reader = Files.newBufferedReader(path, StandardCharsets.UTF_8);
    76  * </pre>
    76  * </pre>
    77  *
    77  *
    78  * <a name="interop"><h4>Interoperability</h4></a>
    78  * <a name="interop"><h4>Interoperability</h4></a>
    79  * <p> Paths associated with the default {@link
    79  * <p> Paths associated with the default {@link
    80  * java.nio.file.spi.FileSystemProvider provider} are generally interoperable
    80  * java.nio.file.spi.FileSystemProvider provider} are generally interoperable