KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > avalon > phoenix > components > configuration > ConfigurationFileFilter


1 /*
2  * Copyright (C) The Apache Software Foundation. All rights reserved.
3  *
4  * This software is published under the terms of the Apache Software License
5  * version 1.1, a copy of which has been included with this distribution in
6  * the LICENSE.txt file.
7  */

8 package org.apache.avalon.phoenix.components.configuration;
9
10 import java.io.File JavaDoc;
11 import java.io.FileFilter JavaDoc;
12
13 class ConfigurationFileFilter implements FileFilter JavaDoc
14 {
15     public boolean accept( File JavaDoc pathname )
16     {
17         return pathname.isFile() && pathname.getName().endsWith( ".xml" );
18     }
19 }
20
Popular Tags