@Override public Path createTempDirectory( final String prefix, final FileAttribute<?>... attrs ) throws IllegalArgumentException, UnsupportedOperationException, IOException, SecurityException { return Files.createTempDirectory( prefix, attrs ); }
@Override public Map<String, Object> readAttributes( final Path path, final String attributes ) throws UnsupportedOperationException, NoSuchFileException, IllegalArgumentException, IOException, SecurityException { return Files.readAttributes( path, attributes ); }
public static Path dot( final Path path ) { if ( path.getFileName() == null ) { return path.resolve( ".root" ); } return path.resolveSibling( "." + path.getFileName() ); }
@Override public boolean exists( final Path path ) throws IllegalArgumentException, SecurityException { return Files.exists( path ); }
@Override public void delete( final Path path, final DeleteOption... options ) throws IllegalArgumentException, NoSuchFileException, DirectoryNotEmptyException, IOException, SecurityException { Files.delete( path, options ); }
@Override public Path createDirectory( final Path dir, final FileAttribute<?>... attrs ) throws IllegalArgumentException, UnsupportedOperationException, FileAlreadyExistsException, IOException, SecurityException { return Files.createDirectory( dir, attrs ); }
@Override public InputStream newInputStream( final Path path, final OpenOption... options ) throws IllegalArgumentException, NoSuchFileException, UnsupportedOperationException, IOException, SecurityException { return Files.newInputStream( path, options ); }
@Override public long size( final Path path ) throws IllegalArgumentException, IOException, SecurityException { return Files.size( path ); }
@Override public BufferedReader newBufferedReader( final Path path, final Charset cs ) throws IllegalArgumentException, NoSuchFileException, IOException, SecurityException { return Files.newBufferedReader( path, cs ); }
@Override public Path copy( final Path source, final Path target, final CopyOption... options ) throws UnsupportedOperationException, FileAlreadyExistsException, DirectoryNotEmptyException, IOException, SecurityException { return Files.copy( source, target, options ); }
@Override public BufferedWriter newBufferedWriter( final Path path, final Charset cs, final OpenOption... options ) throws IllegalArgumentException, IOException, UnsupportedOperationException, SecurityException { return Files.newBufferedWriter( path, cs, options ); }
@Override public WatchKey register( WatchService watcher, Kind<?>... events ) throws UnsupportedOperationException, IllegalArgumentException, ClosedWatchServiceException, IOException, SecurityException { return watcher.poll(); }
@Override public Object getAttribute( final Path path, final String attribute ) throws UnsupportedOperationException, IllegalArgumentException, IOException, SecurityException { return Files.getAttribute( path, attribute ); }
@Override public List<String> readAllLines( final Path path, final Charset cs ) throws IllegalArgumentException, NoSuchFileException, IOException, SecurityException { return Files.readAllLines( path, cs ); }
@Override public Path createTempDirectory( final Path dir, final String prefix, final FileAttribute<?>... attrs ) throws IllegalArgumentException, UnsupportedOperationException, IOException, SecurityException { return Files.createTempDirectory( dir, prefix, attrs ); }
@Override public long copy( final InputStream in, final Path target, final CopyOption... options ) throws IOException, FileAlreadyExistsException, DirectoryNotEmptyException, UnsupportedOperationException, SecurityException { return Files.copy( in, target, options ); }