Exemple #1
0
  public static void writeChild(Path parentDir, String childFileName, String childContents) {

    try {

      final Path newFilePath = path(parentDir.toString(), childFileName);

      write(newFilePath, childContents);
    } catch (Exception ex) {
      Exceptions.handle(ex);
    }
  }
Exemple #2
0
 public static void output(Path file, byte[] bytes) {
   IO.write(file, bytes);
 }
Exemple #3
0
 public static void write(Path file, String contents) {
   write(file, contents.getBytes(DEFAULT_CHARSET));
 }