public enum FileFormat
Encapsulates the notion of a file format with which Charger has to deal.
This class does not capture the syntax of the format, only its extension and its description.
The image formats are taken from one typical image writer's list of supported
Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (FileFormat c : FileFormat.values())
an array containing the constants of this enum type, in the order they are declared
public static FileFormat valueOf(java.lang.String name)
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
name - the name of the enum constant to be returned.
the enum constant with the specified name
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null
public java.lang.String extension()
a single file extension associated with that file format.
Does NOT include the leading "." of the extension.