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, uninstallFrom
protected abstract boolean op(String name, File path) throws SecurityException
name
- Name of the operation.SecurityException
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.