src/java.base/share/classes/java/nio/file/Files.java
changeset 47478 438e0c9f2f17
parent 47216 71c04702a3d5
child 47496 66e2e3f62eb5
equal deleted inserted replaced
47477:115ed64c7822 47478:438e0c9f2f17
  3299     public static List<String> readAllLines(Path path) throws IOException {
  3299     public static List<String> readAllLines(Path path) throws IOException {
  3300         return readAllLines(path, StandardCharsets.UTF_8);
  3300         return readAllLines(path, StandardCharsets.UTF_8);
  3301     }
  3301     }
  3302 
  3302 
  3303     /**
  3303     /**
  3304      * Writes bytes to a file. The {@code options} parameter specifies how the
  3304      * Writes bytes to a file. The {@code options} parameter specifies how
  3305      * the file is created or opened. If no options are present then this method
  3305      * the file is created or opened. If no options are present then this method
  3306      * works as if the {@link StandardOpenOption#CREATE CREATE}, {@link
  3306      * works as if the {@link StandardOpenOption#CREATE CREATE}, {@link
  3307      * StandardOpenOption#TRUNCATE_EXISTING TRUNCATE_EXISTING}, and {@link
  3307      * StandardOpenOption#TRUNCATE_EXISTING TRUNCATE_EXISTING}, and {@link
  3308      * StandardOpenOption#WRITE WRITE} options are present. In other words, it
  3308      * StandardOpenOption#WRITE WRITE} options are present. In other words, it
  3309      * opens the file for writing, creating the file if it doesn't exist, or
  3309      * opens the file for writing, creating the file if it doesn't exist, or