|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.doolin.util.PatternFileFilter
public class PatternFileFilter
This pattern works with DOS like patterns. Only the "*" wildcard is supported.
PatternFormat| Constructor Summary | |
|---|---|
PatternFileFilter(String pattern)
Initialization |
|
| Method Summary | |
|---|---|
boolean |
accept(File file)
|
boolean |
accept(String fileName)
Checks if a file name (or any string) complies with the pattern. |
String |
format(Object... params)
Format a string using some parameters. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PatternFileFilter(String pattern)
pattern - Pattern to be used.| Method Detail |
|---|
public boolean accept(File file)
accept in interface FileFilterFileFilter.accept(File)public boolean accept(String fileName)
fileName - String to check
PatternFormat.accept(String)public String format(Object... params)
params - Parameters to include in the formatted string
PatternFormat.format(Object[])
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||