Class TIFFTagSet
java.lang.Object
javax.imageio.plugins.tiff.TIFFTagSet
- Direct Known Subclasses:
BaselineTIFFTagSet, ExifGPSTagSet, ExifInteroperabilityTagSet, ExifParentTIFFTagSet, ExifTIFFTagSet, FaxTIFFTagSet, GeoTIFFTagSet
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:
-
Constructor Summary
ConstructorsConstructorDescriptionTIFFTagSet(List<TIFFTag> tags) Constructs aTIFFTagSet, given aListofTIFFTagobjects. -
Method Summary
Modifier and TypeMethodDescriptiongetTag(int tagNumber) Returns theTIFFTagfrom this set that is associated with the given tag number, ornullif no tag exists for that number.Returns theTIFFTaghaving the given tag name, ornullif the named tag does not belong to this tag set.Retrieves an unmodifiable lexicographically increasing set of tag names.Retrieves an unmodifiable numerically increasing set of tag numbers.Methods declared in class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitModifier and TypeMethodDescriptionprotected Objectclone()Creates and returns a copy of this object.booleanIndicates whether some other object is "equal to" this one.protected voidfinalize()Deprecated, for removal: This API element is subject to removal in a future version.Finalization is deprecated and subject to removal in a future release.final Class<?> getClass()Returns the runtime class of thisObject.inthashCode()Returns a hash code value for this object.final voidnotify()Wakes up a single thread that is waiting on this object's monitor.final voidWakes up all threads that are waiting on this object's monitor.toString()Returns a string representation of the object.final voidwait()Causes the current thread to wait until it is awakened, typically by being notified or interrupted.final voidwait(long timeoutMillis) Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.final voidwait(long timeoutMillis, int nanos) Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.
-
Constructor Details
-
TIFFTagSet
Constructs aTIFFTagSet, given aListofTIFFTagobjects.- 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
Returns theTIFFTagfrom this set that is associated with the given tag number, ornullif no tag exists for that number.- Parameters:
tagNumber- the number of the tag to be retrieved.- Returns:
- the numbered
TIFFTag, ornull.
-
getTag
Returns theTIFFTaghaving the given tag name, ornullif 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
Retrieves an unmodifiable numerically increasing set of tag numbers.The returned object is unmodifiable and contains the tag numbers of all
TIFFTags in thisTIFFTagSetsorted into ascending order according toComparable.compareTo(Object).- Returns:
- All tag numbers in this set.
-
getTagNames
Retrieves an unmodifiable lexicographically increasing set of tag names.The returned object is unmodifiable and contains the tag names of all
TIFFTags in thisTIFFTagSetsorted into ascending order according toComparable.compareTo(Object).- Returns:
- All tag names in this set.
-