uvi
Class Generator.MyFilter
java.lang.Object
uvi.Generator.MyFilter
- All Implemented Interfaces:
- FileFilter
- Enclosing class:
- Generator
private static class Generator.MyFilter
- extends Object
- implements FileFilter
Decides which files to select for the File.listFiles()
method of the File
class.
NOTE: Any reference to "HTML Files" should be taken as a synonym for "PHP Files."
When this documentation was created, only *.html files were used. Later, they were
converted to *.php files to facilitate dynamic content (i.e. comments).
- See Also:
Generator.analyzeArguments(String[])
Field Summary |
private String |
ext
The extension of the files to select. |
Constructor Summary |
Generator.MyFilter(String newExt)
Constructs this filter with the given extension on which to filter. |
Method Summary |
boolean |
accept(File pathName)
Returns whether or not to accept the given file based on this filter. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ext
private String ext
- The extension of the files to select.
Generator.MyFilter
public Generator.MyFilter(String newExt)
- Constructs this filter with the given extension on which to filter.
- Parameters:
newExt
- the extension of the files to select (i.e. "xml")
accept
public boolean accept(File pathName)
- Returns whether or not to accept the given file based on this filter.
- Specified by:
accept
in interface FileFilter
- Parameters:
pathName
- the path which should be accepted or rejected
based on whether it contains the extension for this
MyFilter
object
- Returns:
true
if the given file should be selected