Enum Constant | Description |
---|---|
bmp |
|
cmx |
|
cod |
|
gif |
|
ico |
|
ief |
|
jfif |
|
jpe |
|
jpeg |
|
jpg |
|
pbm |
|
pgm |
|
png |
|
pnm |
|
ppm |
|
ras |
|
rgb |
|
tif |
|
tiff |
|
xbm |
|
xpm |
|
xwd |
Modifier and Type | Field | Description |
---|---|---|
java.lang.String |
mimetype |
Modifier and Type | Method | Description |
---|---|---|
static boolean |
isBinaryImage(java.lang.String filename) |
|
static java.lang.String |
toMimeType(java.lang.String filename) |
|
static ImageType |
valueOf(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.
|
public static final ImageType bmp
public static final ImageType cmx
public static final ImageType cod
public static final ImageType gif
public static final ImageType ico
public static final ImageType ief
public static final ImageType jfif
public static final ImageType jpe
public static final ImageType jpeg
public static final ImageType jpg
public static final ImageType pbm
public static final ImageType pgm
public static final ImageType pnm
public static final ImageType png
public static final ImageType ppm
public static final ImageType ras
public static final ImageType rgb
public static final ImageType tif
public static final ImageType tiff
public static final ImageType xbm
public static final ImageType xpm
public static final ImageType xwd
public static ImageType[] values()
for (ImageType c : ImageType.values()) System.out.println(c);
public static ImageType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static boolean isBinaryImage(java.lang.String filename)
public static java.lang.String toMimeType(java.lang.String filename)
Copyright © 2018. All rights reserved.