コード例 #1
0
 @Override
 public void writeContentsToPath(String contents, Path path, FileAttribute<?>... attrs)
     throws IOException {
   writeBytesToPath(contents.getBytes(Charsets.UTF_8), path, attrs);
 }
コード例 #2
0
 @Override
 public void copyToPath(final InputStream inputStream, Path path, CopyOption... options)
     throws IOException {
   writeBytesToPath(ByteStreams.toByteArray(inputStream), path);
 }
コード例 #3
0
 @Override
 public Path createNewFile(Path path) throws IOException {
   writeBytesToPath(new byte[0], path);
   return path;
 }