java.lang.Object
javax.imageio.IIOParam
javax.imageio.ImageReadParam
javax.imageio.plugins.tiff.TIFFImageReadParam
public final class TIFFImageReadParam extends ImageReadParam
A subclass of 
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.
- Since:
- 9
- 
Field SummaryFields declared in class javax.imageio.ImageReadParamcanSetSourceRenderSize, destination, destinationBands, minProgressivePass, numProgressivePasses, sourceRenderSizeFields declared in class javax.imageio.IIOParamcontroller, defaultController, destinationOffset, destinationType, sourceBands, sourceRegion, sourceXSubsampling, sourceYSubsampling, subsamplingXOffset, subsamplingYOffset
- 
Constructor SummaryConstructors Constructor Description TIFFImageReadParam()Constructs aTIFFImageReadParam.
- 
Method SummaryModifier and Type Method Description voidaddAllowedTagSet(TIFFTagSet tagSet)Adds aTIFFTagSetobject to the list of allowed tag sets.List<TIFFTagSet>getAllowedTagSets()Returns aListcontaining the allowedTIFFTagSetobjects.booleangetReadUnknownTags()Retrieve the setting of whether to read fields corresponding to unknownTIFFTags.voidremoveAllowedTagSet(TIFFTagSet tagSet)Removes aTIFFTagSetobject from the list of allowed tag sets.voidsetReadUnknownTags(boolean readUnknownTags)Set whether to read fields corresponding toTIFFTags not in the allowedTIFFTagSets.Methods declared in class javax.imageio.ImageReadParamcanSetSourceRenderSize, getDestination, getDestinationBands, getSourceMaxProgressivePass, getSourceMinProgressivePass, getSourceNumProgressivePasses, getSourceRenderSize, setDestination, setDestinationBands, setSourceProgressivePasses, setSourceRenderSizeMethods declared in class javax.imageio.IIOParamactivateController, getController, getDefaultController, getDestinationOffset, getDestinationType, getSourceBands, getSourceRegion, getSourceXSubsampling, getSourceYSubsampling, getSubsamplingXOffset, getSubsamplingYOffset, hasController, setController, setDestinationOffset, setDestinationType, setSourceBands, setSourceRegion, setSourceSubsampling
- 
Constructor Details- 
TIFFImageReadParampublic TIFFImageReadParam()Constructs aTIFFImageReadParam. Tags defined by theTIFFTagSetsBaselineTIFFTagSet,FaxTIFFTagSet,ExifParentTIFFTagSet, andGeoTIFFTagSetwill be supported.- See Also:
- BaselineTIFFTagSet,- FaxTIFFTagSet,- ExifParentTIFFTagSet,- GeoTIFFTagSet
 
 
- 
- 
Method Details- 
addAllowedTagSetAdds aTIFFTagSetobject to the list of allowed tag sets. Attempting to add a duplicate object to the list has no effect.- Parameters:
- tagSet- a- TIFFTagSet.
- Throws:
- IllegalArgumentException- if- tagSetis- null.
 
- 
removeAllowedTagSetRemoves aTIFFTagSetobject from the list of allowed tag sets. Removal is based on theequalsmethod of theTIFFTagSet, which is normally defined as reference equality.- Parameters:
- tagSet- a- TIFFTagSet.
- Throws:
- IllegalArgumentException- if- tagSetis- null.
 
- 
getAllowedTagSetsReturns aListcontaining the allowedTIFFTagSetobjects.- Returns:
- a ListofTIFFTagSets.
 
- 
setReadUnknownTagspublic void setReadUnknownTags(boolean readUnknownTags)Set whether to read fields corresponding toTIFFTags not in the allowedTIFFTagSets. The default setting isfalse. If the TIFFImageReaderis ignoring metadata, then a setting oftrueis overridden as all metadata are ignored except those essential to reading the image itself.- Parameters:
- readUnknownTags- Whether to read fields of unrecognized tags
 
- 
getReadUnknownTagspublic boolean getReadUnknownTags()Retrieve the setting of whether to read fields corresponding to unknownTIFFTags.- Returns:
- Whether to read fields of unrecognized tags
 
 
-