You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "Vasily Ivanov (JIRA)" <ji...@apache.org> on 2007/07/13 03:58:05 UTC
[jira] Created: (VFS-170) FileSelector that delegates all work to
java.io.FilenameFilter
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
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
[jira] Updated: (VFS-170) FileSelector that delegates all work to
java.io.FilenameFilter
Posted by "Vasily Ivanov (JIRA)" <ji...@apache.org>.
[ 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