public class ImageFileFilter extends XdevFileFilter
getInstance()
,
getSupportedImageExtensions()
Modifier | Constructor and Description |
---|---|
protected |
ImageFileFilter()
Creates a new image file filter.
|
Modifier and Type | Method and Description |
---|---|
static String |
checkImageFormat(String format)
Checks if
format is a supported image format and returns an
optional case-corrected format string. |
static ImageFileFilter |
getInstance()
Returns the single instance of the image file filter.
|
static String[] |
getSupportedImageExtensions()
Returns all supported image format extensions, as an lowercase string
array.
|
accept, ensureFileEndsWithExtension, getDescription, getExtensions
public static ImageFileFilter getInstance()
public static String[] getSupportedImageExtensions()
Default supported images, may vary depending on the platform this application is running on:
public static String checkImageFormat(String format) throws IllegalArgumentException
format
is a supported image format and returns an
optional case-corrected format string.format
- the image format to check, e.g. "gif", "png", "jpg"format
IllegalArgumentException
- if format
is not supportedCopyright © 2003–2021 XDEV Software. All rights reserved.