Enum IfdType
- java.lang.Object
-
- java.lang.Enum<IfdType>
-
- net.coobird.thumbnailator.util.exif.IfdType
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ASCIIAn 8-bit value containing a single 7-bit ASCII character.BYTEAn 8-bit unsigned integer value.LONGA 32-bit unsigned integer value.RATIONALSHORTA 16-bit unsigned integer value.SLONGA 32-bit signed integer value using 2's complement.SRATIONALTwoSLONGvalues, where the firstSLONGis the numerator, while the secondSLONGis the denominator.UNDEFINEDAn 8-bit value which can be value as defined elsewhere.
-
Constructor Summary
Constructors Modifier Constructor Description privateIfdType(int value, int size)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intsize()Returns the size in bytes for this IFD type.java.lang.StringtoString()Returns a textualStringreprensentation of this enum.static IfdTypetypeOf(int value)Returns theIfdTypecorresponding to the given IFD type value.intvalue()Returns the IFD type as a type value.static IfdTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static IfdType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BYTE
public static final IfdType BYTE
An 8-bit unsigned integer value.
-
ASCII
public static final IfdType ASCII
An 8-bit value containing a single 7-bit ASCII character. The final byte is NULL-terminated.
-
SHORT
public static final IfdType SHORT
A 16-bit unsigned integer value.
-
LONG
public static final IfdType LONG
A 32-bit unsigned integer value.
-
RATIONAL
public static final IfdType RATIONAL
-
UNDEFINED
public static final IfdType UNDEFINED
An 8-bit value which can be value as defined elsewhere.
-
SLONG
public static final IfdType SLONG
A 32-bit signed integer value using 2's complement.
-
-
Method Detail
-
values
public static IfdType[] 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 (IfdType c : IfdType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static IfdType valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
size
public int size()
Returns the size in bytes for this IFD type.- Returns:
- Size in bytes for this IFD type.
-
value
public int value()
Returns the IFD type as a type value.- Returns:
- IFD type as a type value.
-
typeOf
public static IfdType typeOf(int value)
Returns theIfdTypecorresponding to the given IFD type value.
-
toString
public java.lang.String toString()
Returns a textualStringreprensentation of this enum.- Overrides:
toStringin classjava.lang.Enum<IfdType>- Returns:
- A textual representation of this enum.
-
-