equal
deleted
inserted
replaced
472 return doPrivilegedIOWithReturn( () -> Files.newDirectoryStream(directory)); |
472 return doPrivilegedIOWithReturn( () -> Files.newDirectoryStream(directory)); |
473 } |
473 } |
474 |
474 |
475 @Override |
475 @Override |
476 public String getAbsolutePath(File f) throws IOException { |
476 public String getAbsolutePath(File f) throws IOException { |
477 return doPrivilegedIOWithReturn( () ->f.getAbsolutePath()); |
477 return doPrivilegedIOWithReturn( () -> f.getAbsolutePath()); |
478 } |
478 } |
479 @Override |
479 @Override |
480 public long length(File f) throws IOException { |
480 public long length(File f) throws IOException { |
481 return doPrivilegedIOWithReturn( () ->f.length()); |
481 return doPrivilegedIOWithReturn( () -> f.length()); |
482 } |
482 } |
483 |
483 |
484 @Override |
484 @Override |
485 public long fileSize(Path p) throws IOException { |
485 public long fileSize(Path p) throws IOException { |
486 return doPrivilegedIOWithReturn( () ->Files.size(p)); |
486 return doPrivilegedIOWithReturn( () -> Files.size(p)); |
487 } |
487 } |
488 } |
488 } |
489 |
489 |
490 |
490 |
491 } |
491 } |