Package org.apache.commons.imaging
Enum ImageFormats
- All Implemented Interfaces:
Serializable
,Comparable<ImageFormats>
,ImageFormat
Enumerates known image formats.
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionGets the default file extension.String[]
Gets the file extension.getName()
Gets the name.static ImageFormats
Returns the enum constant of this type with the specified name.static ImageFormats[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
UNKNOWN
-
BMP
-
DCX
-
GIF
-
ICNS
-
ICO
-
JBIG2
-
JPEG
-
PAM
-
PSD
-
PBM
-
PGM
-
PNM
-
PPM
-
PCX
-
PNG
-
RGBE
-
TGA
-
TIFF
-
WBMP
-
WEBP
-
XBM
-
XPM
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getDefaultExtension
Description copied from interface:ImageFormat
Gets the default file extension.- Specified by:
getDefaultExtension
in interfaceImageFormat
- Returns:
- the default file extension.
-
getExtensions
Description copied from interface:ImageFormat
Gets the file extension.- Specified by:
getExtensions
in interfaceImageFormat
- Returns:
- String extension
-
getName
Description copied from interface:ImageFormat
Gets the name.- Specified by:
getName
in interfaceImageFormat
- Returns:
- String name
-