Package htmlcompiler.model
Enum ImageType
java.lang.Object
java.lang.Enum<ImageType>
htmlcompiler.model.ImageType
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ImageType>,java.lang.constant.Constable
public enum ImageType extends java.lang.Enum<ImageType>
-
Nested Class Summary
-
Enum Constant Summary
-
Field Summary
Fields Modifier and Type Field Description java.lang.Stringmimetype -
Method Summary
Modifier and Type Method Description static booleanisBinaryImage(java.lang.String filename)static java.lang.StringtoMimeType(java.lang.String filename)static ImageTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ImageType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
Field Details
-
mimetype
public final java.lang.String mimetype
-
-
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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
isBinaryImage
public static boolean isBinaryImage(java.lang.String filename) -
toMimeType
public static java.lang.String toMimeType(java.lang.String filename)
-