commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mario Ivankovits <ma...@ops.co.at>
Subject Re: [VFS] getChildren()
Date Fri, 18 Feb 2005 19:25:49 GMT
Andy Lewis wrote:
> What about supporting both FileSelector and FileFilter, with the 
> traverseDescendents() implicitly false on FileFilter to mirror 
> java.io.File behavior?
Now there is a new Selector (FileFilterSelector) and a new interface 
(FileFilter).

        FileObject fo = VFS.getManager().resolveFile("/home/im");
        fo.findFiles(new FileFilterSelector(ff));

There is no need to implement the FileFilter interface as it is possible 
to override the accept() method of FileFilterSelector.

---
Mario


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message