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
FilePathFilter
read
in class FilePathFilter
SecurityException
public boolean write(File f) throws SecurityException
FilePathFilter
write
in class FilePathFilter
SecurityException
public boolean symlink(File f) throws SecurityException
FilePathFilter
symlink
in class FilePathFilter
SecurityException
public boolean mkdirs(File f) throws SecurityException
FilePathFilter
mkdirs
in class FilePathFilter
SecurityException
public boolean create(File f) throws SecurityException
FilePathFilter
create
in class FilePathFilter
SecurityException
public boolean delete(File f) throws SecurityException
FilePathFilter
delete
in class FilePathFilter
SecurityException
public boolean stat(File f) throws SecurityException
FilePathFilter
stat
in class FilePathFilter
SecurityException
Copyright © 2004–2021. All rights reserved.