A TIFF IFD consists of a set of TIFFField tags. Methods are provided to query the set of tags and to obtain the raw field array. In addition, convenience methods are provided for acquiring the values of tags that contain a single value that fits into a byte, int, long, float, or double.
Every TIFF file is made up of one or more public IFDs that are joined in a linked list, rooted in the file header. A file may also contain so-called private IFDs that are referenced from tag data and do not appear in the main list.
This class is not a committed part of the JAI API. It may be removed or changed in future releases of JAI. @see com.lightcrafts.mediax.jai.operator.TIFFDescriptor @see TIFFField
TIFFDirectory
instance corresponds to an IFD and contains a set of {@link TIFFField}s each of which corresponds to an IFD Entry in the IFD. When reading, a TIFFDirectory
may be created by passing the value returned by {@link javax.imageio.ImageReader#getImageMetadata ImageReader.getImageMetadata()} to {@link #createFromMetadata createFromMetadata()}. The {@link TIFFField}s in the directory may then be obtained using the accessor methods provided in this class.
When writing, an {@link IIOMetadata} object for use by one of theTIFFDirectory
by {@link #getAsMetadata()}. The TIFFDirectory
itself may be created by construction or from the IIOMetadata
object returned by {@link javax.imageio.ImageWriter#getDefaultImageMetadata ImageWriter.getDefaultImageMetadata()}. The TIFFField
s in the directory may be set using the mutator methods provided in this class.
A TIFFDirectory
is aware of the tag numbers in the group of {@link TIFFTagSet}s associated with it. When a TIFFDirectory
is created from a native image metadata object, these tag sets are derived from the tagSets attribute of the TIFFIFD node.
A TIFFDirectory
might also have a parent {@link TIFFTag}. This will occur if the directory represents an IFD other than the root IFD of the image. The parent tag is the tag of the IFD Entry which is a pointer to the IFD represented by this TIFFDirectory
. The {@link TIFFTag#isIFDPointer} method of this parent TIFFTag
must return true
. When a TIFFDirectory
is created from a native image metadata object, the parent tag set is set from the parentTagName attribute of the corresponding TIFFIFD node. Note that a TIFFDirectory
instance which has a non-null
parent tag will be contained in the data field of a TIFFField
instance which has a tag field equal to the contained directory's parent tag.
As an example consider an EXIF image. The TIFFDirectory
instance corresponding to the EXIF IFD in the EXIF stream would have parent tag {@link EXIFParentTIFFTagSet#TAG_EXIF_IFD_POINTER TAG_EXIF_IFD_POINTER}and would include {@link EXIFTIFFTagSet} in its group of known tag sets.The TIFFDirectory
corresponding to this EXIF IFD will be contained in the data field of a TIFFField
which will in turn be contained in the TIFFDirectory
corresponding to the primary IFD of the EXIF image which will itself have a null
-valued parent tag.
Note that this implementation is not synchronized. If multiple threads use a TIFFDirectory
instance concurrently, and at least one of the threads modifies the directory, for example, by adding or removing TIFFField
s or TIFFTagSet
s, it must be synchronized externally.
A TIFF IFD consists of a set of TIFFField tags. Methods are provided to query the set of tags and to obtain the raw field array. In addition, convenience methods are provided for acquiring the values of tags that contain a single value that fits into a byte, int, long, float, or double.
Every TIFF file is made up of one or more public IFDs that are joined in a linked list, rooted in the file header. A file may also contain so-called private IFDs that are referenced from tag data and do not appear in the main list.
This class is not a committed part of the JAI API. It may be removed or changed in future releases of JAI. @see javax.media.jai.operator.TIFFDescriptor @see TIFFField
A TIFF IFD consists of a set of TIFFField tags. Methods are provided to query the set of tags and to obtain the raw field array. In addition, convenience methods are provided for acquiring the values of tags that contain a single value that fits into a byte, int, long, float, or double.
Every TIFF file is made up of one or more public IFDs that are joined in a linked list, rooted in the file header. A file may also contain so-called private IFDs that are referenced from tag data and do not appear in the main list.
This class is not a committed part of the JAI API. It may be removed or changed in future releases of JAI. @see TIFFField
A TIFF IFD consists of a set of TIFFField tags. Methods are provided to query the set of tags and to obtain the raw field array. In addition, convenience methods are provided for acquiring the values of tags that contain a single value that fits into a byte, int, long, float, or double.
Every TIFF file is made up of one or more public IFDs that are joined in a linked list, rooted in the file header. A file may also contain so-called private IFDs that are referenced from tag data and do not appear in the main list.
This class is not a committed part of the JAI API. It may be removed or changed in future releases of JAI. @see TIFFField @version $Id: TIFFDirectory.java 1345683 2012-06-03 14:50:33Z gadams $
|
|
|
|
|
|
|
|
|
|
|
|