public final class SoloFilePathFilter extends FilePathFilter
FilePathFilter that assumes it is the sole actor.
It throws SecurityException instead of returning false. This makes it the
convenient final wrapper for the caller.UNRESTRICTED| Modifier and Type | Method and Description |
|---|---|
boolean |
create(File f)
Checks if the given file can be created.
|
boolean |
delete(File f)
Checks if the given file/directory can be deleted.
|
boolean |
mkdirs(File f)
Checks if the given directory can be created.
|
boolean |
read(File f)
Checks if the given file/directory can be read.
|
boolean |
stat(File f)
Checks if the metadata of the given file/directory (as opposed to the content) can be accessed.
|
boolean |
symlink(File f)
Checks if a symlink can be created at 'f'
On POSIX, this corresponds to the 'w' permission of the file itself.
|
static SoloFilePathFilter |
wrap(FilePathFilter base)
Null-safe constructor.
|
boolean |
write(File f)
Checks if the given file can be written.
|
current, installTo, installTo, uninstallFrom@Nullable public static SoloFilePathFilter wrap(@Nullable FilePathFilter base)
public boolean read(File f) throws SecurityException
FilePathFilterread in class FilePathFilterSecurityExceptionpublic boolean write(File f) throws SecurityException
FilePathFilterwrite in class FilePathFilterSecurityExceptionpublic boolean symlink(File f) throws SecurityException
FilePathFiltersymlink in class FilePathFilterSecurityExceptionpublic boolean mkdirs(File f) throws SecurityException
FilePathFiltermkdirs in class FilePathFilterSecurityExceptionpublic boolean create(File f) throws SecurityException
FilePathFiltercreate in class FilePathFilterSecurityExceptionpublic boolean delete(File f) throws SecurityException
FilePathFilterdelete in class FilePathFilterSecurityExceptionpublic boolean stat(File f) throws SecurityException
FilePathFilterstat in class FilePathFilterSecurityExceptionCopyright © 2019. All rights reserved.