| java.lang.Object com.sun.media.imageio.plugins.tiff.TIFFTagSet
All known Subclasses: com.sun.media.imageio.plugins.tiff.GeoTIFFTagSet, com.sun.media.imageio.plugins.tiff.EXIFTIFFTagSet, com.sun.media.imageio.plugins.tiff.EXIFParentTIFFTagSet, com.sun.media.imageio.plugins.tiff.EXIFInteroperabilityTagSet, com.sun.media.imageio.plugins.tiff.EXIFGPSTagSet, com.sun.media.imageio.plugins.tiff.FaxTIFFTagSet, com.sun.media.imageio.plugins.tiff.BaselineTIFFTagSet,
TIFFTagSet | public class TIFFTagSet (Code) | | 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 ts
data values.
See Also: TIFFTag |
Constructor Summary | |
public | TIFFTagSet(List tags) Constructs a TIFFTagSet , given a List
of TIFFTag objects. |
Method Summary | |
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. | 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 . | public SortedSet | getTagNames() Retrieves an unmodifiable lexicographically increasing set of tag names. | public SortedSet | getTagNumbers() Retrieves an unmodifiable numerically increasing set of tag numbers. |
TIFFTagSet | public TIFFTagSet(List tags)(Code) | | Constructs a TIFFTagSet , given a List
of TIFFTag objects.
Parameters: tags - a List object containingTIFFTag objects to be added to this tag set. throws: IllegalArgumentException - if tags isnull , or contains objects that are not instancesof the TIFFTag class. |
getTag | public TIFFTag getTag(int tagNumber)(Code) | | 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. the numbered TIFFTag , or null . |
getTag | public TIFFTag getTag(String tagName)(Code) | | 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 . the named TIFFTag , or null . throws: IllegalArgumentException - if tagName isnull . |
getTagNames | public SortedSet getTagNames()(Code) | | 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
String#compareTo(Object) .
All tag names in this set. |
getTagNumbers | public SortedSet getTagNumbers()(Code) | | 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
Integer#compareTo(Object) .
All tag numbers in this set. |
|
|