commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vasily Ivanov (JIRA)" <j...@apache.org>
Subject [jira] Updated: (VFS-170) FileSelector that delegates all work to java.io.FilenameFilter
Date Fri, 13 Jul 2007 02:00:12 GMT

     [ https://issues.apache.org/jira/browse/VFS-170?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Vasily Ivanov updated VFS-170:
------------------------------

    Attachment: FilenameFilterFileSelector.java

FilenameFilterFileSelector implementation.

> FileSelector that delegates all work to java.io.FilenameFilter
> --------------------------------------------------------------
>
>                 Key: VFS-170
>                 URL: https://issues.apache.org/jira/browse/VFS-170
>             Project: Commons VFS
>          Issue Type: New Feature
>    Affects Versions: 1.0
>            Reporter: Vasily Ivanov
>            Priority: Minor
>         Attachments: FilenameFilterFileSelector.java
>
>
> See file attached.
> This will allow to use one-liners like this:
> import org.apache.commons.io.IOCase;
> import org.apache.commons.io.filefilter.WildcardFileFilter;
> ...
> FileObject[] configFileObjects = dirObject.findFiles(new FilenameFilterFileSelector(new
WildcardFileFilter("*config*.xml", IOCase.SYSTEM)))
> To name a few FilenameFilters from Commons IO that can be used here:
> AndFileFilter
> DelegateFileFilter
> NameFileFilter
> NotFileFilter
> OrFileFilter
> PrefixFileFilter
> SuffixFileFilter
> WildcardFileFilter
> FalseFileFilter
> TrueFileFilter
> Very useful. :-)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


Mime
View raw message