Package com.thebuzzmedia.exiftool.core
Enum StandardFormat
- java.lang.Object
-
- java.lang.Enum<StandardFormat>
-
- com.thebuzzmedia.exiftool.core.StandardFormat
-
- All Implemented Interfaces:
Format
,Serializable
,Comparable<StandardFormat>
public enum StandardFormat extends Enum<StandardFormat> implements Format
Enum used to define the 2 different output formats thatStandardTag
values can be returned in: numeric or human-readable text.
ExifTool, via the-n
command line arg, is capable of returning most values in their raw numeric form (e.g. Aperture="2.8010323841") as well as a more human-readable/friendly format (e.g. Aperture="2.8").
If the caller finds the human-readable format easier to process,HUMAN_READABLE
can be specified when callingExifTool.getImageMeta(File, Format, Collection)
and the returnedString
values processed manually by the caller.
In order to see the types of values that are returned whenHUMAN_READABLE
is used, you can check the comprehensive ExifTool Tag Guide.
This makes sense with some values like Aperture that inNUMERIC
format end up returning as 14-decimal-place, high precision values that are near the intended value (e.g. "2.79999992203711" instead of just returning "2.8"). On the other hand, other values (like Orientation) are easier to parse when their numeric value (1-8) is returned instead of a much longer friendly name (e.g. "Mirror horizontal and rotate 270 CW").- Since:
- 1.1
- Author:
- Riyad Kalla ([email protected]), Mickael Jeanroy
-
-
Enum Constant Summary
Enum Constants Enum Constant Description HUMAN_READABLE
NUMERIC
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StandardFormat
valueOf(String name)
Returns the enum constant of this type with the specified name.static StandardFormat[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NUMERIC
public static final StandardFormat NUMERIC
-
HUMAN_READABLE
public static final StandardFormat HUMAN_READABLE
-
-
Method Detail
-
values
public static StandardFormat[] 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 (StandardFormat c : StandardFormat.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static StandardFormat 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
-
-