Class 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:
    TIFF, IFD
    • Field Detail

      • type

        private final short type
    • Constructor Detail

      • TIFFEntry

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

        public TIFFEntry​(int identifier,
                         short type,
                         java.lang.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:
        java.lang.IllegalArgumentException - if type is not a legal TIFF type.
        See Also:
        TIFF
    • Method Detail

      • getType

        public short getType()
      • getType

        static short getType​(Entry entry)
      • guessType

        private static short guessType​(java.lang.Object entryValue)
      • getValueLength

        static long getValueLength​(int pType,
                                   long pCount)