Class TIFFTagSet
- java.lang.Object
-
- javax.imageio.plugins.tiff.TIFFTagSet
- Direct Known Subclasses:
-
BaselineTIFFTagSet
,ExifGPSTagSet
,ExifInteroperabilityTagSet
,ExifParentTIFFTagSet
,ExifTIFFTagSet
,FaxTIFFTagSet
,GeoTIFFTagSet
public class TIFFTagSet extends Object
A class representing a set of TIFF tags. Each tag in the set must have a unique number (this is a limitation of the TIFF specification itself).
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:
TIFFTag
Constructors
Constructor | Description |
---|---|
TIFFTagSet(List<TIFFTag> tags) | Constructs a |
Methods
Modifier and Type | Method | Description |
---|---|---|
TIFFTag | getTag(int tagNumber) | Returns the |
TIFFTag | getTag(String tagName) | Returns the |
SortedSet<String> | getTagNames() | Retrieves an unmodifiable lexicographically increasing set of tag names. |
SortedSet<Integer> | getTagNumbers() | Retrieves an unmodifiable numerically increasing set of tag numbers. |
Methods declared in class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Constructors
TIFFTagSet
public TIFFTagSet(List<TIFFTag> tags)
Constructs a TIFFTagSet
, given a List
of TIFFTag
objects.
- Parameters:
-
tags
- aList
object containingTIFFTag
objects to be added to this tag set. - Throws:
-
IllegalArgumentException
- iftags
isnull
, or contains objects that are not instances of theTIFFTag
class.
Methods
getTag
public TIFFTag getTag(int tagNumber)
Returns the 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)
Returns the 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
- iftagName
isnull
.
getTagNumbers
public SortedSet<Integer> getTagNumbers()
Retrieves an unmodifiable numerically increasing set of tag numbers.
The returned object is unmodifiable and contains the tag numbers of all TIFFTag
s in this TIFFTagSet
sorted into ascending order according to Comparable.compareTo(Object)
.
- Returns:
- All tag numbers in this set.
getTagNames
public SortedSet<String> getTagNames()
Retrieves an unmodifiable lexicographically increasing set of tag names.
The returned object is unmodifiable and contains the tag names of all TIFFTag
s in this TIFFTagSet
sorted into ascending order according to Comparable.compareTo(Object)
.
- Returns:
- All tag names in this set.
© 1993, 2020, 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/11/docs/api/java.desktop/javax/imageio/plugins/tiff/TIFFTagSet.html