org.jtheque.utils.io
Class SimpleFilter

java.lang.Object
  extended by org.jtheque.utils.io.SimpleFilter
All Implemented Interfaces:
FileFilter

public class SimpleFilter
extends Object
implements FileFilter

A simple file filter.

Author:
Baptiste Wicht

Constructor Summary
SimpleFilter(String description, String extensions)
          Construct a new FilterSimple.
 
Method Summary
 boolean accept(File file)
           
 String getDescription()
          Return the description of the filter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleFilter

public SimpleFilter(String description,
                    String extensions)
Construct a new FilterSimple.

Parameters:
description - The description of the filter.
extensions - The extension accepted by the filter, in comma-separated format.
Method Detail

accept

public final boolean accept(File file)
Specified by:
accept in interface FileFilter

getDescription

public final String getDescription()
Return the description of the filter.

Returns:
The description of the filter.


Copyright © 2010 JTheque. All Rights Reserved.