|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.as400.util.html.HTMLFileFilter
public class HTMLFileFilter extends Object implements FilenameFilter
The HTMLFileFilter class determines if a File object is a file.
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(File file,
String filename)
Determines if a file should be included in a file list. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HTMLFileFilter()
| Method Detail |
|---|
public boolean accept(File file,
String filename)
accept in interface FilenameFilterfile - The directory in which the file was found.filename - The name of the file.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||