Package com.scroogexhtml.pictures
Enum PictureFormat
- java.lang.Object
-
- java.lang.Enum<PictureFormat>
-
- com.scroogexhtml.pictures.PictureFormat
-
- All Implemented Interfaces:
Serializable
,Comparable<PictureFormat>
public enum PictureFormat extends Enum<PictureFormat>
This enum defines picture formats and their associated content types.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getExtension()
String
getMimeType()
static PictureFormat
valueOf(String name)
Returns the enum constant of this type with the specified name.static PictureFormat[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PF_PICT
public static final PictureFormat PF_PICT
PICT format.
-
PF_PNG
public static final PictureFormat PF_PNG
PNG format.
-
PF_JPG
public static final PictureFormat PF_JPG
JPG format.
-
PF_EMF
public static final PictureFormat PF_EMF
EMF format.
-
PF_WMF
public static final PictureFormat PF_WMF
WMF format.
-
PF_BMP
public static final PictureFormat PF_BMP
BMP format.
-
-
Method Detail
-
values
public static PictureFormat[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PictureFormat c : PictureFormat.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PictureFormat valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getExtension
public String getExtension()
-
getMimeType
public String getMimeType()
-
-