Class DirectoryReader
java.lang.Object
is.galia.codec.tiff.DirectoryReader
Combination TIFF and EXIF Image File Directory (IFD) reader.
The EXIF container structure is similar to and based on TIFF, and this reader can parse the IFD portions of a TIFF 6.0 file.
EXIF 3.0 is supported.
BigTIFF is also supported.
The EXIF standard includes four tag sets:
- Baseline TIFF
- EXIF
- GPS
- Interoperability
The Baseline TIFF tags defined in EXIF
are
a subset of the tags in the TIFF
specification
.
Instances must be initialized with one or more tag sets
prior to reading. There are several such implementations in this package,
and custom ones can also be supplied. TagSet.newBaselineSuperset()
can be used to obtain a superset of all baseline tags, including support for
the EXIF sub-IFDs and all other known sub-IFDs.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
getTagSet
(int ifdPointer) boolean
iterator()
readAll()
Reads all directories.Reads only the first directory.void
setSource
(ImageInputStream inputStream)
-
Constructor Details
-
DirectoryReader
public DirectoryReader()
-
-
Method Details
-
addTagSet
-
getTagSet
-
getTagSets
-
isBigTIFF
public boolean isBigTIFF() -
setSource
- Parameters:
inputStream
- Instance initialized to the starting position of the EXIF data (or JPEG APP0 EXIF segment data).
-
iterator
- Returns:
- Iterator over all top-level sibling IFDs.
- Throws:
IOException
-
readAll
-
readFirst
-