public enum ImageFormat extends java.lang.Enum<ImageFormat>
SoundFormat| Enum Constant and Description |
|---|
BMP |
GIF |
JPG |
PNG |
UNSUPPORTED |
| Modifier and Type | Method and Description |
|---|---|
static ImageFormat |
get(java.lang.String imageFormat)
Gets the
SoundFormat of the specified format string. |
static java.lang.String[] |
getAllExtensions() |
static boolean |
isSupported(java.io.File file)
Determines whether the extension of the specified file is supported by the engine.
|
static boolean |
isSupported(java.lang.String fileName)
Determines whether the extension of the specified file is supported by the engine.
|
java.lang.String |
toFileExtension()
Converts this format instance to a file format string that can be used as an extension (e.g.
|
java.lang.String |
toString() |
static ImageFormat |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ImageFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ImageFormat UNSUPPORTED
public static final ImageFormat PNG
public static final ImageFormat GIF
public static final ImageFormat BMP
public static final ImageFormat JPG
public static ImageFormat[] values()
for (ImageFormat c : ImageFormat.values()) System.out.println(c);
public static ImageFormat 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 ImageFormat get(java.lang.String imageFormat)
SoundFormat of the specified format string.imageFormat - The format string from which to extract the format.UNDEFINED if not supported.public static boolean isSupported(java.io.File file)
file - The file to check for.public static boolean isSupported(java.lang.String fileName)
fileName - The name of the file to check for.public static java.lang.String[] getAllExtensions()
public java.lang.String toFileExtension()
public java.lang.String toString()
toString in class java.lang.Enum<ImageFormat>