Permalink
Browse files

some improvements (in fact implementations) on VFSService Impl for Ri…

…kkola
  • Loading branch information...
1 parent f4fab95 commit f026c99c0afb0d6dbbd822d34ab0c33dc5f9eb36 @porcelli porcelli committed Nov 29, 2012
@@ -125,15 +125,15 @@ public Path createFile( Path path,
}
@Override
- public Path createDirectory( Path dir,
- FileAttribute<?>... attrs ) throws IllegalArgumentException, UnsupportedOperationException, FileAlreadyExistsException, IOException {
- return null; //To change body of implemented methods use File | Settings | File Templates.
+ public Path createDirectory( final Path dir,
+ final FileAttribute<?>... attrs ) throws IllegalArgumentException, UnsupportedOperationException, FileAlreadyExistsException, IOException {
+ return convert( Files.createDirectory( fromPath( dir ), attrs ) );
}
@Override
public Path createDirectories( Path dir,
FileAttribute<?>... attrs ) throws UnsupportedOperationException, FileAlreadyExistsException, IOException {
- return null; //To change body of implemented methods use File | Settings | File Templates.
+ return convert( Files.createDirectories( fromPath( dir ), attrs ) );
}
@Override
@@ -150,41 +150,41 @@ public Path createLink( Path link,
}
@Override
- public void delete( Path path ) throws IllegalArgumentException, NoSuchFileException, DirectoryNotEmptyException, IOException {
- //To change body of implemented methods use File | Settings | File Templates.
+ public void delete( final Path path ) throws IllegalArgumentException, NoSuchFileException, DirectoryNotEmptyException, IOException {
+ Files.delete( fromPath( path ) );
}
@Override
- public boolean deleteIfExists( Path path ) throws IllegalArgumentException, DirectoryNotEmptyException, IOException {
- return false; //To change body of implemented methods use File | Settings | File Templates.
+ public boolean deleteIfExists( final Path path ) throws IllegalArgumentException, DirectoryNotEmptyException, IOException {
+ return Files.deleteIfExists( fromPath( path ) );
}
@Override
public Path createTempFile( Path dir,
String prefix,
String suffix,
FileAttribute<?>... attrs ) throws IllegalArgumentException, UnsupportedOperationException, IOException {
- return null; //To change body of implemented methods use File | Settings | File Templates.
+ return null;
}
@Override
public Path createTempFile( String prefix,
String suffix,
FileAttribute<?>... attrs ) throws IllegalArgumentException, UnsupportedOperationException, IOException {
- return null; //To change body of implemented methods use File | Settings | File Templates.
+ return null;
}
@Override
public Path createTempDirectory( Path dir,
String prefix,
FileAttribute<?>... attrs ) throws IllegalArgumentException, UnsupportedOperationException, IOException {
- return null; //To change body of implemented methods use File | Settings | File Templates.
+ return null;
}
@Override
public Path createTempDirectory( String prefix,
FileAttribute<?>... attrs ) throws IllegalArgumentException, UnsupportedOperationException, IOException {
- return null; //To change body of implemented methods use File | Settings | File Templates.
+ return null;
}
@Override

0 comments on commit f026c99

Please sign in to comment.