public class HTMLFileFilter
extends java.lang.Object
implements java.io.FilenameFilter
This example creates a HTMLFileFilter object to determine which IFSJavaFile objects are files.
// Create an IFSJavaFile object. IFSJavaFile root = new IFSJavaFile(system, "/QIBM"); // Create a HTMLFileFilter object. HTMLFileFilter filter = new HTMLFileFilter(); // Get the list of File objects. File[] files = root.listFiles(filter);
FileListElement
Constructor and Description |
---|
HTMLFileFilter()
Constructs a default HTMLFileFilter object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(java.io.File file,
java.lang.String filename)
Determines if a file should be included in a file list.
|
public HTMLFileFilter()
public boolean accept(java.io.File file, java.lang.String filename)
accept
in interface java.io.FilenameFilter
file
- The directory in which the file was found.filename
- The name of the file.