org.jtheque.utils.io
Class SimpleFilter
java.lang.Object
org.jtheque.utils.io.SimpleFilter
- All Implemented Interfaces:
- FileFilter
public class SimpleFilter
- extends Object
- implements FileFilter
A simple file filter.
- Author:
- Baptiste Wicht
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
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.