|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ereinion.io.DirFilter
Questa classe fornisce una regola di filtraggio per le directory.
Constructor Summary | |
DirFilter()
Crea un nuovo filtro che accetta file solo se sono delle directory directory. |
|
DirFilter(boolean filterDir)
Crea un nuovo filtro che accetta solo directory se il flag argomento � impostato a true , altrimenti accetta tutti i file che non siano
directory.
|
Method Summary | |
boolean |
accept(java.io.File dir,
java.lang.String name)
|
boolean |
accept(java.lang.Object obj)
Definisce la regola in base alla quale un elemento deve essere filtrato. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DirFilter()
public DirFilter(boolean filterDir)
true
, altrimenti accetta tutti i file che non siano
directory.
param filterDir flag per stabilire se vanno accettate le directory o gli altri file.
Method Detail |
public boolean accept(java.lang.Object obj)
FilterRule
accept
in interface FilterRule
obj
- l'elemento da verificare.
true
se l'elemento viene accettato dal filtro, false
se viene scartato.public boolean accept(java.io.File dir, java.lang.String name)
accept
in interface java.io.FilenameFilter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |