Package org.geotools.tpk
Enum TPKReader.ImageFormats
- Object
-
- Enum<TPKReader.ImageFormats>
-
- ImageFormats
-
- All Implemented Interfaces:
Serializable
,Comparable<TPKReader.ImageFormats>
- Enclosing class:
- TPKReader
public static enum TPKReader.ImageFormats extends Enum<TPKReader.ImageFormats>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
inferFormatFromImageData(byte[] imageData)
static TPKReader.ImageFormats
valueOf(String name)
Returns the enum constant of this type with the specified name.static TPKReader.ImageFormats[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FMT_JPG
public static final TPKReader.ImageFormats FMT_JPG
-
FMT_PNG
public static final TPKReader.ImageFormats FMT_PNG
-
-
Method Detail
-
values
public static TPKReader.ImageFormats[] 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 (TPKReader.ImageFormats c : TPKReader.ImageFormats.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TPKReader.ImageFormats 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
-
inferFormatFromImageData
public static String inferFormatFromImageData(byte[] imageData)
-
-