public class PrefixFilter
extends java.lang.Object
implements java.io.FilenameFilter
| Constructor and Description |
|---|
PrefixFilter(java.lang.String... prefix)
Creates the prefixfilter
|
PrefixFilter(java.lang.String prefix)
Creates the prefixfilter
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(java.io.File dir,
java.lang.String name)
A PrefixFilter accepts a filename if the filename matches any of the prefixes used to construct the PrefixFilter.
|
public PrefixFilter(java.lang.String prefix)
prefix - The prefix for which is to be filtered. May not be unll.public PrefixFilter(java.lang.String... prefix)
prefix - The prefix for which is to be filtered. May not be unll.public boolean accept(java.io.File dir,
java.lang.String name)
accept in interface java.io.FilenameFilter