public enum StandardFormat extends java.lang.Enum<StandardFormat> implements Format
StandardTag
values can be returned in: numeric or human-readable text.
-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").
HUMAN_READABLE
can be specified when calling
ExifTool.getImageMeta(File, Format, Collection)
and the returned String
values processed manually by the caller.
HUMAN_READABLE
is used, you can check the
comprehensive
ExifTool Tag Guide.
NUMERIC
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").Enum Constant and Description |
---|
HUMAN_READABLE |
NUMERIC |
Modifier and Type | Method and Description |
---|---|
static StandardFormat |
valueOf(java.lang.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.
|
public static final StandardFormat NUMERIC
public static final StandardFormat HUMAN_READABLE
public static StandardFormat[] values()
for (StandardFormat c : StandardFormat.values()) System.out.println(c);
public static StandardFormat 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 nullCopyright © 2019. All Rights Reserved.