示例#1
0
文件: IO.java 项目: nremond/boon
  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);
    }
  }
示例#2
0
文件: IO.java 项目: nremond/boon
 public static void output(Path file, byte[] bytes) {
   IO.write(file, bytes);
 }
示例#3
0
文件: IO.java 项目: nremond/boon
 public static void write(Path file, String contents) {
   write(file, contents.getBytes(DEFAULT_CHARSET));
 }