Package org.apache.commons.imaging
Enum ImageFormats
- All Implemented Interfaces:
Serializable
,Comparable<ImageFormats>
,java.lang.constant.Constable
,ImageFormat
Enum of known image formats.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionString[]
Get the file extension associated with thisImageFormat
.getName()
Get the name of thisImageFormat
.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
-
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
-
getName
Description copied from interface:ImageFormat
Get the name of thisImageFormat
.- Specified by:
getName
in interfaceImageFormat
- Returns:
- String name
-
getExtensions
Description copied from interface:ImageFormat
Get the file extension associated with thisImageFormat
.- Specified by:
getExtensions
in interfaceImageFormat
- Returns:
- String extension
-
getDefaultExtension
- Specified by:
getDefaultExtension
in interfaceImageFormat
-