Class TIFFDirectory
java.lang.Object
org.monte.media.tiff.TIFFNode
org.monte.media.tiff.TIFFDirectory
A convenience class for working with TIFF IFD's.
- Author:
- Werner Randelshofer
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionTIFFDirectory(TagSet tagSet, TIFFTag tag, int index) Creates a TIFFDirectory identified by the specified TIFFTag.TIFFDirectory(TagSet tagSet, TIFFTag tag, int index, long offset, long length, ArrayList<FileSegment> fileSegments) TIFFDirectory(TagSet tagSet, TIFFTag tag, int index, long offset, long length, FileSegment fileSegment) 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(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. -
Method Summary
Modifier and TypeMethodDescriptionintgetCount()Returns the value of the TIFFField with the specified tag if a child node with this tag exists.Returns a TIFFField with the specified tag if a child node with this tag exists.Returns the segments of the TIFF file inside its parent file.getIFD()Returns the IFD from which this directory has been read.intgetIndex()longgetName()longReturns the tag set used by this directory.toString()Methods inherited from class org.monte.media.tiff.TIFFNode
add, getChildAt, getChildCount, getChildren, getIFDEntry, getParent, getTag, getTagName, getTagNumber, postorderIterator, preorderIterator, removeFromParent
-
Constructor Details
-
TIFFDirectory
-
TIFFDirectory
-
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
-
getTagSet
Returns the tag set used by this directory. -
getName
-
getIndex
public int getIndex() -
getCount
public int getCount() -
getOffset
public long getOffset() -
getLength
public long getLength() -
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
-
getData
-
toString
-