public static final class StringOption.FileFilter extends Object implements StringOption.Filter
StringOption.Filter which filters based
on existence and type of file to which the string refers.| Modifier and Type | Class and Description |
|---|---|
static class |
StringOption.FileFilter.AcceptExistance
Enumeration of possible file existence states to accept.
|
static class |
StringOption.FileFilter.AcceptFileType
Enumeration of possible types to accept.
|
| Constructor and Description |
|---|
StringOption.FileFilter(StringOption.FileFilter.AcceptExistance eType,
StringOption.FileFilter.AcceptFileType fType)
Creates a new
FileOption instance (allows files/folders). |
public StringOption.FileFilter(StringOption.FileFilter.AcceptExistance eType, StringOption.FileFilter.AcceptFileType fType)
FileOption instance (allows files/folders).eType - type of files to accept/reject based on existencefType - type of files to accept/reject based on file/directory statuspublic boolean accept(String arg)
accept in interface StringOption.Filterarg - string argument to check for validity as an option valueCopyright © 2013. All rights reserved.