Enum Class IFDDataType

java.lang.Object
java.lang.Enum<IFDDataType>
org.monte.media.tiff.IFDDataType
All Implemented Interfaces:
Serializable, Comparable<IFDDataType>, Constable

public enum IFDDataType extends Enum<IFDDataType>
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 Constants
    Enum Constant
    Description
    8-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 Type
    Method
    Description
    int
     
    valueOf(int typeNumber)
    Gets the tag for the specified value.
    Returns the enum constant of this class with the specified name.
    static IFDDataType[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • ASCII

      public static final IFDDataType 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

      public static final IFDDataType BYTE
      8-bit unsigned integer. Represented by a Short object in Java.
    • SHORT

      public static final IFDDataType SHORT
      16-bit (2-byte) unsigned integer. Represented by an Int object in Java.
    • LONG

      public static final IFDDataType LONG
      32-bit (4-byte) unsigned integer. Represented by a Long object in Java.
    • RATIONAL

      public static final IFDDataType RATIONAL
      Two LONGs: the first represents the numerator of a fraction; the second, the denominator. Represented by a Rational object in Java.
    • SBYTE

      public static final IFDDataType SBYTE
      An 8-bit signed (twos-complement) integer. Represented by a Byte object in Java.
    • UNDEFINED

      public static final IFDDataType UNDEFINED
      An 8-bit byte that may contain anything, depending on the definition of the field. Represented by a Byte object in Java.
    • SSHORT

      public static final IFDDataType SSHORT
      A 16-bit (2-byte) signed (twos-complement) integer. Represented by a Short object in Java.
    • SLONG

      public static final IFDDataType SLONG
      A 32-bit (4-byte) signed (twos-complement) integer. Represented by an Int object in Java.
    • SRATIONAL

      public static final IFDDataType SRATIONAL
      Two SLONG’s: the first represents the numerator of a fraction, the second the denominator. Represented by a Rational object in Java.
    • FLOAT

      public static final IFDDataType FLOAT
      Single precision (4-byte) IEEE format. Represented by a Float object in Java.
    • DOUBLE

      public static final IFDDataType DOUBLE
      Double precision (8-byte) IEEE format. Represented by a Double object in Java.
    • IFD

      public static final IFDDataType 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

      public static IFDDataType[] 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

      public static IFDDataType valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getTypeNumber

      public int getTypeNumber()
    • valueOf

      public static IFDDataType valueOf(int typeNumber)
      Gets the tag for the specified value.