public static enum ImageHeaderParser.ImageType extends Enum<ImageHeaderParser.ImageType>
Enum Constant and Description |
---|
GIF
GIF type.
|
JPEG
JPG type.
|
PNG
PNG type without alpha.
|
PNG_A
PNG type with alpha.
|
UNKNOWN
Unrecognized type.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasAlpha() |
static ImageHeaderParser.ImageType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ImageHeaderParser.ImageType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ImageHeaderParser.ImageType GIF
public static final ImageHeaderParser.ImageType JPEG
public static final ImageHeaderParser.ImageType PNG_A
public static final ImageHeaderParser.ImageType PNG
public static final ImageHeaderParser.ImageType UNKNOWN
public static ImageHeaderParser.ImageType[] values()
for (ImageHeaderParser.ImageType c : ImageHeaderParser.ImageType.values()) System.out.println(c);
public static ImageHeaderParser.ImageType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean hasAlpha()