org.objectweb.jonas.server
Class JFileFilter

java.lang.Object
  extended by org.objectweb.jonas.server.JFileFilter
All Implemented Interfaces:
java.io.FileFilter

public class JFileFilter
extends java.lang.Object
implements java.io.FileFilter

This class implements a FileFilter, used to list files of a directory.

Author:
Ludovic Bert, Florent Benoit

Constructor Summary
JFileFilter(java.lang.String filter)
          Contruct a new JFileFilter with the specified filter.
 
Method Summary
 boolean accept(java.io.File pathname)
          Tests whether or not the specified abstract pathname should be included in a pathname list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JFileFilter

public JFileFilter(java.lang.String filter)
Contruct a new JFileFilter with the specified filter.

Parameters:
filter - the filter to use. A comma-separated list of the allowed extensions. For instance ".jar,.dtd", note that ".*" is allowed.
Method Detail

accept

public boolean accept(java.io.File pathname)
Tests whether or not the specified abstract pathname should be included in a pathname list.

Specified by:
accept in interface java.io.FileFilter
Parameters:
pathname - the abstract pathname to be tested.
Returns:
true if and only if pathname should be included.