public enum FileFormat extends java.lang.Enum<FileFormat>
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFileExtension()
Returns the most commonly used extension, lower case, NOT including a dot.
|
java.lang.String[] |
getFileExtensions()
Returns array of possible extensions, lower case, NOT including dots.
|
boolean |
isWriteable() |
static FileFormat |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static FileFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FileFormat FITS
public static final FileFormat JPEG
public static final FileFormat RAW
public static final FileFormat TIFF
public static FileFormat[] values()
for (FileFormat c : FileFormat.values()) System.out.println(c);
public static FileFormat 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 java.lang.String getFileExtension()
public java.lang.String[] getFileExtensions()
public boolean isWriteable()