public static class DefaultFileFilter.ImageFileFilter extends FileFilter
ImageIO.getReaderFormatNames()
Modifier and Type | Field and Description |
---|---|
protected String |
desc
Description of the filter.
|
protected static String[] |
imageFormats
Holds the accepted file format extensions for images.
|
Constructor and Description |
---|
ImageFileFilter(String description)
Constructs a new file filter for all supported image formats using
the specified description.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(File file)
Returns true if the file is a directory or ends with a known image
extension.
|
String |
getDescription()
Returns the description.
|
protected static String[] imageFormats
protected String desc
public ImageFileFilter(String description)
description
- The description to use for the file filter.public boolean accept(File file)
accept
in class FileFilter
file
- The file to be checked.public String getDescription()
getDescription
in class FileFilter
Copyright © 2015–2021 Fiji. All rights reserved.