|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mindprod.filter.JunkFilter
com.mindprod.filter.AvoidJunkFilter
public final class AvoidJunkFilter
Filter to permit only non-junk files.
accept only non-junk files. Can define junk files by name, extension, starts with or endsWith lists, the same as you would JunkFilter. Returns false for all directories.
Constructor Summary | |
---|---|
AvoidJunkFilter()
Defines which filenames and extensions are considered junk, to be deleted. |
Method Summary | |
---|---|
boolean |
accept(java.io.File dir,
java.lang.String name)
Accept only junk files to be deleted. |
Methods inherited from class com.mindprod.filter.JunkFilter |
---|
setEndsWith, setExtensions, setFilenames, setStartsWith |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AvoidJunkFilter()
Method Detail |
---|
public boolean accept(java.io.File dir, java.lang.String name)
accept
in interface java.io.FilenameFilter
accept
in class JunkFilter
dir
- 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 |