|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.pf.file.DefaultFilenameFilter
public class DefaultFilenameFilter
This filter implements the standard pattern matching on UNIX and Windows platforms. It supports the wildcards '*' and '?'.
| Constructor Summary | |
|---|---|
DefaultFilenameFilter(java.lang.String pattern)
Initialize the new instance with the given filename pattern. |
|
DefaultFilenameFilter(java.lang.String pattern,
boolean ignoreCase)
Initialize the new instance with the given filename pattern. |
|
| Method Summary | |
|---|---|
boolean |
accept(java.io.File dir,
java.lang.String name)
Tests if a specified file should be included in a file list. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultFilenameFilter(java.lang.String pattern)
pattern - The pattern for filenames that match. Can include wildcards '*' and '?'
public DefaultFilenameFilter(java.lang.String pattern,
boolean ignoreCase)
pattern - The pattern for filenames that match. Can include wildcards '*' and '?'ignoreCase - false, if match should be done case sensitive, otherwise true.| Method Detail |
|---|
public boolean accept(java.io.File dir,
java.lang.String name)
accept in interface java.io.FilenameFilterdir - the directory in which the file was found.name - the name of the file.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||