Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 54334 invoked from network); 13 Jul 2007 01:58:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Jul 2007 01:58:29 -0000 Received: (qmail 55790 invoked by uid 500); 13 Jul 2007 01:58:29 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 55620 invoked by uid 500); 13 Jul 2007 01:58:28 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 55560 invoked by uid 99); 13 Jul 2007 01:58:28 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Jul 2007 18:58:28 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Jul 2007 18:58:25 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 2BBD5714213 for ; Thu, 12 Jul 2007 18:58:05 -0700 (PDT) Message-ID: <27433139.1184291885175.JavaMail.jira@brutus> Date: Thu, 12 Jul 2007 18:58:05 -0700 (PDT) From: "Vasily Ivanov (JIRA)" To: commons-dev@jakarta.apache.org Subject: [jira] Created: (VFS-170) FileSelector that delegates all work to java.io.FilenameFilter MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org 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