public final class TIFFImageReadParam extends ImageReadParam
ImageReadParam allowing control over
the TIFF reading process.
Because TIFF is an extensible format, the reader requires information about any tags used by TIFF extensions in order to emit meaningful metadata. Also, TIFF extensions may define new compression types. Both types of information about extensions may be provided by this interface.
Additional TIFF tags must be organized into
TIFFTagSets. A TIFFTagSet may be
provided to the reader by means of the
addAllowedTagSet method. By default, the tag sets
BaselineTIFFTagSet, FaxTIFFTagSet,
ExifParentTIFFTagSet, and GeoTIFFTagSet
are included.
Forcing reading of fields corresponding to TIFFTags
not in any of the allowed TIFFTagSets may be effected via
setReadUnknownTags.
controller, defaultController, destinationOffset, destinationType, sourceBands, sourceRegion, sourceXSubsampling, sourceYSubsampling, subsamplingXOffset, subsamplingYOffsetcanSetSourceRenderSize, destination, destinationBands, minProgressivePass, numProgressivePasses, sourceRenderSize| Constructor | Description |
|---|---|
TIFFImageReadParam() |
Constructs a
TIFFImageReadParam. |
| Modifier and Type | Method | Description |
|---|---|---|
void |
addAllowedTagSet(TIFFTagSet tagSet) |
Adds a
TIFFTagSet object to the list of allowed
tag sets. |
List<TIFFTagSet> |
getAllowedTagSets() |
Returns a
List containing the allowed
TIFFTagSet objects. |
boolean |
getReadUnknownTags() |
Retrieve the setting of whether to read fields corresponding to unknown
TIFFTags. |
void |
removeAllowedTagSet(TIFFTagSet tagSet) |
Removes a
TIFFTagSet object from the list of
allowed tag sets. |
void |
setReadUnknownTags(boolean readUnknownTags) |
Set whether to read fields corresponding to
TIFFTags not in
the allowed TIFFTagSets. |
activateController, getController, getDefaultController, getDestinationOffset, getDestinationType, getSourceBands, getSourceRegion, getSourceXSubsampling, getSourceYSubsampling, getSubsamplingXOffset, getSubsamplingYOffset, hasController, setController, setDestinationOffset, setSourceBands, setSourceRegion, setSourceSubsamplingcanSetSourceRenderSize, getDestination, getDestinationBands, getSourceMaxProgressivePass, getSourceMinProgressivePass, getSourceNumProgressivePasses, getSourceRenderSize, setDestination, setDestinationBands, setDestinationType, setSourceProgressivePasses, setSourceRenderSizepublic TIFFImageReadParam()
TIFFImageReadParam. Tags defined by
the TIFFTagSets BaselineTIFFTagSet,
FaxTIFFTagSet, ExifParentTIFFTagSet, and
GeoTIFFTagSet will be supported.BaselineTIFFTagSet,
FaxTIFFTagSet,
ExifParentTIFFTagSet,
GeoTIFFTagSetpublic void addAllowedTagSet(TIFFTagSet tagSet)
TIFFTagSet object to the list of allowed
tag sets. Attempting to add a duplicate object to the list
has no effect.tagSet - a TIFFTagSet.IllegalArgumentException - if tagSet is
null.public void removeAllowedTagSet(TIFFTagSet tagSet)
TIFFTagSet object from the list of
allowed tag sets. Removal is based on the equals
method of the TIFFTagSet, which is normally
defined as reference equality.tagSet - a TIFFTagSet.IllegalArgumentException - if tagSet is
null.public List<TIFFTagSet> getAllowedTagSets()
List containing the allowed
TIFFTagSet objects.List of TIFFTagSets.public void setReadUnknownTags(boolean readUnknownTags)
TIFFTags not in
the allowed TIFFTagSets. The default setting is false.
If the TIFF ImageReader is ignoring metadata, then a setting
of true is overridden as all metadata are ignored except those
essential to reading the image itself.readUnknownTags - Whether to read fields of unrecognized tagspublic boolean getReadUnknownTags()
TIFFTags. Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2017, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-Debian+0-9b155-1