org.jppf.utils
Class ThumbnailGenerator.ImageFileFilter
java.lang.Object
org.jppf.utils.ThumbnailGenerator.ImageFileFilter
- All Implemented Interfaces:
- FileFilter
- Enclosing class:
- ThumbnailGenerator
public static class ThumbnailGenerator.ImageFileFilter
- extends Object
- implements FileFilter
File filter that only accepts GIF, JPG and PNG files.
|
Method Summary |
boolean |
accept(File file)
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 |
ThumbnailGenerator.ImageFileFilter
public ThumbnailGenerator.ImageFileFilter(String... extensions)
- Initialize this filter witht he specified extensions.
- Parameters:
extensions - an array of the accepted extensions.
accept
public boolean accept(File file)
- Tests whether or not the specified abstract pathname should be included in a pathname list.
- Specified by:
accept in interface FileFilter
- Parameters:
file - the abstract pathname to be tested.
- Returns:
- true if and only if pathname should be included.
- See Also:
FileFilter.accept(java.io.File)
Copyright © 2005-2010 JPPF Team.