Package htmlcompiler.model
Enum ImageType
- java.lang.Object
-
- java.lang.Enum<ImageType>
-
- htmlcompiler.model.ImageType
-
-
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 Detail
-
bmp
public static final ImageType bmp
-
cmx
public static final ImageType cmx
-
cod
public static final ImageType cod
-
gif
public static final ImageType gif
-
ico
public static final ImageType ico
-
ief
public static final ImageType ief
-
jfif
public static final ImageType jfif
-
jpe
public static final ImageType jpe
-
jpeg
public static final ImageType jpeg
-
jpg
public static final ImageType jpg
-
pbm
public static final ImageType pbm
-
pgm
public static final ImageType pgm
-
pnm
public static final ImageType pnm
-
png
public static final ImageType png
-
ppm
public static final ImageType ppm
-
ras
public static final ImageType ras
-
rgb
public static final ImageType rgb
-
tif
public static final ImageType tif
-
tiff
public static final ImageType tiff
-
xbm
public static final ImageType xbm
-
xpm
public static final ImageType xpm
-
xwd
public static final ImageType xwd
-
-
Method Detail
-
values
public static ImageType[] 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
public static ImageType 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 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)
-
-