public abstract class ReflectiveFilePathFilter extends FilePathFilter
FilePathFilter that allows you to handle all
operations as a single string argument.UNRESTRICTED| Constructor and Description |
|---|
ReflectiveFilePathFilter() |
| 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.
|
protected abstract boolean |
op(String name,
File path) |
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.
|
boolean |
write(File f)
Checks if the given file can be written.
|
current, installTo, installTo, uninstallFromprotected abstract boolean op(String name, File path) throws SecurityException
name - Name of the operation.SecurityExceptionpublic 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.