final class FilePermissionServiceImpl extends java.lang.Object implements FilePermissionService
Class that limits file permissions using a PosixFileAttributeView
or an AclFileAttributeView
.
For use by FileUtil.limitAccessToOwner(File)
.
Constructor and Description |
---|
FilePermissionServiceImpl() |
Modifier and Type | Method and Description |
---|---|
boolean |
limitAccessToOwner(java.io.File file)
Change the permissions of a file so that only the owner can access it.
|
public boolean limitAccessToOwner(java.io.File file) throws java.io.IOException
FilePermissionService
limitAccessToOwner
in interface FilePermissionService
file
- the file whose permissions should be changedtrue
if the permissions were successfully changed, or
false
if the implementation does not support changing
permissions on this file systemjava.io.IOException
- if an error happens when changing the permissionsApache Derby V10.11 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.