Class TIFFDirectory

java.lang.Object
org.monte.media.tiff.TIFFNode
org.monte.media.tiff.TIFFDirectory

public class TIFFDirectory extends TIFFNode
A convenience class for working with TIFF IFD's.
Author:
Werner Randelshofer
  • Constructor Details

    • TIFFDirectory

      public TIFFDirectory(TagSet tagSet, TIFFTag tag, int index)
      Creates a TIFFDirectory identified by the specified TIFFTag.
    • TIFFDirectory

      public TIFFDirectory(TagSet tagSet, TIFFTag tag, int index, IFD ifd, IFDEntry parentEntry, ArrayList<FileSegment> fileSegments)
      Creates a TIFFDirectory identified by the specified TIFFTag and associated with the specified IFD and file segments.
    • TIFFDirectory

      public TIFFDirectory(TagSet tagSet, TIFFTag tag, int index, IFD ifd, IFDEntry parentEntry, FileSegment fileSegment)
      Creates a TIFFDirectory identified by the specified TIFFTag and associated with the specified IFD and file segments.
    • TIFFDirectory

      public TIFFDirectory(TagSet tagSet, TIFFTag tag, int index, long offset, long length, FileSegment fileSegment)
    • TIFFDirectory

      public TIFFDirectory(TagSet tagSet, TIFFTag tag, int index, long offset, long length, ArrayList<FileSegment> fileSegments)
  • Method Details

    • getIFD

      public IFD getIFD()
      Returns the IFD from which this directory has been read.
      Returns:
      IFD or null.
    • getTagSet

      public TagSet getTagSet()
      Returns the tag set used by this directory.
    • getName

      public String getName()
    • getIndex

      public int getIndex()
    • getCount

      public int getCount()
    • getOffset

      public long getOffset()
    • getLength

      public long getLength()
    • getFileSegments

      public ArrayList<FileSegment> getFileSegments()
      Returns the segments of the TIFF file inside its parent file. In a JPEG JFIF stream, a TIFF file can be segmented over multiple APP markers.
      Returns:
      segment list or null.
    • getField

      public TIFFField getField(TIFFTag tag)
      Returns a TIFFField with the specified tag. If a child node with this tag exists.
      Parameters:
      tag -
    • getData

      public Object getData(TIFFTag tag)
      Returns the value of the TIFFField with the specified tag. If a child node with this tag exists.
      Parameters:
      tag -
    • toString

      public String toString()
      Overrides:
      toString in class Object