ResourceSelector
, FileSelector
public class ExecutableSelector extends java.lang.Object implements FileSelector
Executable is defined in terms of Files.isExecutable(java.nio.file.Path)
, this means the selector will
accept any file that exists and is executable by the
application.
Constructor | Description |
---|---|
ExecutableSelector() |
Modifier and Type | Method | Description |
---|---|---|
boolean |
isSelected(java.io.File basedir,
java.lang.String filename,
java.io.File file) |
Method that each selector will implement to create their
selection behaviour.
|
isSelected
public boolean isSelected(java.io.File basedir, java.lang.String filename, java.io.File file)
FileSelector
isSelected
in interface FileSelector
basedir
- A java.io.File object for the base directoryfilename
- The name of the file to checkfile
- A File object for this filename