Class TIFFTagSet
- Direct Known Subclasses:
-
BaselineTIFFTagSet,ExifGPSTagSet,ExifInteroperabilityTagSet,ExifParentTIFFTagSet,ExifTIFFTagSet,FaxTIFFTagSet,GeoTIFFTagSet
public class TIFFTagSet extends Object
This class and its subclasses are responsible for mapping between raw tag numbers and TIFFTag objects, which contain additional information about each tag, such as the tag's name, legal data types, and mnemonic names for some or all of its data values.
- Since:
- 9
- See Also:
Constructor Summary
| Constructor | Description |
|---|---|
TIFFTagSet |
Constructs a TIFFTagSet, given a List of TIFFTag objects. |
Method Summary
| Modifier and Type | Method | Description |
|---|---|---|
TIFFTag |
getTag |
Returns the TIFFTag from this set that is associated with the given tag number, or null if no tag exists for that number. |
TIFFTag |
getTag |
Returns the TIFFTag having the given tag name, or null if the named tag does not belong to this tag set. |
SortedSet<String> |
getTagNames() |
Retrieves an unmodifiable lexicographically increasing set of tag names. |
SortedSet<Integer> |
getTagNumbers() |
Retrieves an unmodifiable numerically increasing set of tag numbers. |
Constructor Details
TIFFTagSet
public TIFFTagSet(List<TIFFTag> tags)
TIFFTagSet, given a List of TIFFTag objects.- Parameters:
-
tags- aListobject containingTIFFTagobjects to be added to this tag set. - Throws:
-
IllegalArgumentException- iftagsisnull, or contains objects that are not instances of theTIFFTagclass.
Method Details
getTag
public TIFFTag getTag(int tagNumber)
TIFFTag from this set that is associated with the given tag number, or null if no tag exists for that number.- Parameters:
-
tagNumber- the number of the tag to be retrieved. - Returns:
- the numbered
TIFFTag, ornull.
getTag
public TIFFTag getTag(String tagName)
TIFFTag having the given tag name, or null if the named tag does not belong to this tag set.- Parameters:
-
tagName- the name of the tag to be retrieved, as aString. - Returns:
- the named
TIFFTag, ornull. - Throws:
-
IllegalArgumentException- iftagNameisnull.
getTagNumbers
public SortedSet<Integer> getTagNumbers()
The returned object is unmodifiable and contains the tag numbers of all TIFFTags in this TIFFTagSet sorted into ascending order according to Comparable.compareTo(Object).
- Returns:
- All tag numbers in this set.
getTagNames
public SortedSet<String> getTagNames()
The returned object is unmodifiable and contains the tag names of all TIFFTags in this TIFFTagSet sorted into ascending order according to Comparable.compareTo(Object).
- Returns:
- All tag names in this set.
© 1993, 2021, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/17/docs/api/java.desktop/javax/imageio/plugins/tiff/TIFFTagSet.html