|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<JAIWriter.ImageType>
adams.flow.sink.JAIWriter.ImageType
public static enum JAIWriter.ImageType
The type of the image to create.
| Enum Constant Summary | |
|---|---|
AUTO
|
|
BMP
|
|
JPEG
|
|
PNG
|
|
PNM
|
|
TIFF
|
|
| Method Summary | |
|---|---|
String |
getExtension()
Returns the associated extension. |
String |
getType()
Returns the ImageMagick type. |
boolean |
matches(File file)
Checks whether the file matches the extension of this item. |
boolean |
matches(String filename)
Checks whether the file matches the extension of this item. |
JAIWriter.ImageType |
parse(String s)
Parses the given string and returns the associated enum. |
String |
toDisplay()
Returns the display string. |
String |
toRaw()
Returns the raw enum string. |
String |
toString()
Returns the display string. |
static String |
toString(AbstractOption option,
Object object)
Returns the enum as string. |
static JAIWriter.ImageType |
valueOf(AbstractOption option,
String str)
Returns an enum generated from the string. |
static JAIWriter.ImageType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static JAIWriter.ImageType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final JAIWriter.ImageType AUTO
public static final JAIWriter.ImageType BMP
public static final JAIWriter.ImageType JPEG
public static final JAIWriter.ImageType PNG
public static final JAIWriter.ImageType PNM
public static final JAIWriter.ImageType TIFF
| Method Detail |
|---|
public static JAIWriter.ImageType[] values()
for (JAIWriter.ImageType c : JAIWriter.ImageType.values()) System.out.println(c);
public static JAIWriter.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 name
NullPointerException - if the argument is nullpublic String toDisplay()
toDisplay in interface EnumWithCustomDisplay<JAIWriter.ImageType>public String toRaw()
toRaw in interface EnumWithCustomDisplay<JAIWriter.ImageType>public String toString()
toString in class Enum<JAIWriter.ImageType>public String getType()
public String getExtension()
public boolean matches(File file)
file - the file to check
public boolean matches(String filename)
filename - the file to check
public JAIWriter.ImageType parse(String s)
parse in interface EnumWithCustomDisplay<JAIWriter.ImageType>s - the string to parse
public static String toString(AbstractOption option,
Object object)
option - the current optionobject - the enum object to convert
public static JAIWriter.ImageType valueOf(AbstractOption option,
String str)
option - the current optionstr - the string to convert to an enum
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||