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); } }
public static void output(Path file, byte[] bytes) { IO.write(file, bytes); }
public static void write(Path file, String contents) { write(file, contents.getBytes(DEFAULT_CHARSET)); }