- All Implemented Interfaces:
Serializable,Comparable<IFDDataType>,Constable
Enumeration of TIFF IFD data types.
Sources:
TIFF TM Revision 6.0. Final — June 3, 1992.
Adobe Systems Inc.
http://www.exif.org/specifications.html
Adobe PageMaker® 6.0 TIFF Technical Notes - September 14, 1995
Adobe Systems Inc.
http://www.alternatiff.com/resources/TIFFPM6.pdf
- Author:
- Werner Randelshofer
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription8-bit byte that contains a 7-bit ASCII code; the last byte must be NUL (binary zero).8-bit unsigned integer.Double precision (8-byte) IEEE format.Single precision (4-byte) IEEE format.32-bit (4-byte) unsigned integer pointing to another IFD, as defined in TIFF Tech Note 1 in TIFF Specification Supplement 1.32-bit (4-byte) unsigned integer.Two LONGs: the first represents the numerator of a fraction; the second, the denominator.An 8-bit signed (twos-complement) integer.16-bit (2-byte) unsigned integer.A 32-bit (4-byte) signed (twos-complement) integer.Two SLONG’s: the first represents the numerator of a fraction, the second the denominator.A 16-bit (2-byte) signed (twos-complement) integer.An 8-bit byte that may contain anything, depending on the definition of the field. -
Method Summary
Modifier and TypeMethodDescriptionintstatic IFDDataTypevalueOf(int typeNumber) Gets the tag for the specified value.static IFDDataTypeReturns the enum constant of this class with the specified name.static IFDDataType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ASCII
8-bit byte that contains a 7-bit ASCII code; the last byte must be NUL (binary zero). Represented by a String object in Java. -
BYTE
8-bit unsigned integer. Represented by a Short object in Java. -
SHORT
16-bit (2-byte) unsigned integer. Represented by an Int object in Java. -
LONG
32-bit (4-byte) unsigned integer. Represented by a Long object in Java. -
RATIONAL
Two LONGs: the first represents the numerator of a fraction; the second, the denominator. Represented by a Rational object in Java. -
SBYTE
An 8-bit signed (twos-complement) integer. Represented by a Byte object in Java. -
UNDEFINED
An 8-bit byte that may contain anything, depending on the definition of the field. Represented by a Byte object in Java. -
SSHORT
A 16-bit (2-byte) signed (twos-complement) integer. Represented by a Short object in Java. -
SLONG
A 32-bit (4-byte) signed (twos-complement) integer. Represented by an Int object in Java. -
SRATIONAL
Two SLONG’s: the first represents the numerator of a fraction, the second the denominator. Represented by a Rational object in Java. -
FLOAT
Single precision (4-byte) IEEE format. Represented by a Float object in Java. -
DOUBLE
Double precision (8-byte) IEEE format. Represented by a Double object in Java. -
IFD
32-bit (4-byte) unsigned integer pointing to another IFD, as defined in TIFF Tech Note 1 in TIFF Specification Supplement 1. Represented by a Long object in Java.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getTypeNumber
public int getTypeNumber() -
valueOf
Gets the tag for the specified value.
-