public enum ImageFileFormat extends java.lang.Enum<ImageFileFormat>
Modifier and Type | Method and Description |
---|---|
abstract boolean |
canRead()
Returns true if the image file format supports read operation.
|
abstract boolean |
canWrite()
Returns true if the image file format supports write operation.
|
java.lang.String |
getDescription()
Returns the image file format description.
|
loci.formats.gui.ExtensionFileFilter |
getExtensionFileFilter()
Returns the associated
ExtensionFileFilter |
java.lang.String[] |
getExtensions()
Returns the image file format extensions.
|
static ImageFileFormat |
getFormat(FileFormat format)
For backward compatibility with
FileFormat . |
static ImageFileFormat |
getFormat(java.lang.String ext,
ImageFileFormat defaultValue)
Returns the FileFormat corresponding to specified extension.
|
static ImageFileFormat |
getReadFormat(java.lang.String ext,
ImageFileFormat defaultValue)
Returns the
ImageFileFormat corresponding to the specified extension and which
support read operation. |
static ImageFileFormat |
getWriteFormat(java.lang.String ext,
ImageFileFormat defaultValue)
Returns the
ImageFileFormat corresponding to the specified extension and which
support write operation. |
boolean |
matches(java.lang.String ext)
Return true if the specified extension matches this format.
|
abstract FileFormat |
toFileFormat()
For backward compatibility with
FileFormat . |
static ImageFileFormat |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ImageFileFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ImageFileFormat TIFF
public static final ImageFileFormat PNG
public static final ImageFileFormat LSM
public static final ImageFileFormat JPG
public static final ImageFileFormat AVI
public static ImageFileFormat[] values()
for (ImageFileFormat c : ImageFileFormat.values()) System.out.println(c);
public static ImageFileFormat 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 abstract boolean canRead()
public abstract boolean canWrite()
public java.lang.String getDescription()
public java.lang.String[] getExtensions()
public abstract FileFormat toFileFormat()
FileFormat
.public loci.formats.gui.ExtensionFileFilter getExtensionFileFilter()
ExtensionFileFilter
public boolean matches(java.lang.String ext)
defaultValue
is returned if no matching format is found (it can be null).public static ImageFileFormat getFormat(java.lang.String ext, ImageFileFormat defaultValue)
defaultValue
is returned if no matching format is found.public static ImageFileFormat getReadFormat(java.lang.String ext, ImageFileFormat defaultValue)
ImageFileFormat
corresponding to the specified extension and which
support read operation.defaultValue
is returned if no matching format is found.public static ImageFileFormat getWriteFormat(java.lang.String ext, ImageFileFormat defaultValue)
ImageFileFormat
corresponding to the specified extension and which
support write operation.defaultValue
is returned if no matching format is found.public static ImageFileFormat getFormat(FileFormat format)
FileFormat
.