Class TIFFEntry

java.lang.Object
com.twelvemonkeys.imageio.metadata.AbstractEntry
com.twelvemonkeys.imageio.metadata.tiff.TIFFEntry
All Implemented Interfaces:
Entry

public final class TIFFEntry extends AbstractEntry
Represents a TIFF IFD entry.
Version:
$Id: TIFFEntry.java,v 1.0 Nov 13, 2009 5:47:35 PM haraldk Exp$
See Also:
  • Field Details

    • type

      private final short type
  • Constructor Details

    • TIFFEntry

      public TIFFEntry(int identifier, Object value)
      Creates a new TIFFEntry.
      Parameters:
      identifier - the TIFF tag identifier.
      value - the value of the entry.
      Throws:
      IllegalArgumentException - if value is null.
      See Also:
    • TIFFEntry

      public TIFFEntry(int identifier, short type, Object value)
      Creates a new TIFFEntry.
      Parameters:
      identifier - the TIFF tag identifier.
      type - the type of the entry.
      value - the value of the entry.
      Throws:
      IllegalArgumentException - if type is not a legal TIFF type.
      See Also:
  • Method Details

    • getType

      public short getType()
    • getFieldName

      public String getFieldName()
      Description copied from class: AbstractEntry
      Returns null, meaning unknown or undefined.
      Specified by:
      getFieldName in interface Entry
      Overrides:
      getFieldName in class AbstractEntry
      Returns:
      null.
    • getTypeName

      public String getTypeName()
      Specified by:
      getTypeName in interface Entry
      Overrides:
      getTypeName in class AbstractEntry
    • getType

      static short getType(Entry entry)
    • guessType

      private static short guessType(Object entryValue)
    • getValueLength

      static long getValueLength(int pType, long pCount)