< prev index next >

jdk/src/java.desktop/share/classes/javax/imageio/plugins/tiff/TIFFTagSet.java

Print this page




  27 import java.util.Collections;
  28 import java.util.Iterator;
  29 import java.util.List;
  30 import java.util.Set;
  31 import java.util.SortedMap;
  32 import java.util.SortedSet;
  33 import java.util.TreeMap;
  34 import java.util.TreeSet;
  35 
  36 /**
  37  * A class representing a set of TIFF tags.  Each tag in the set must
  38  * have a unique number (this is a limitation of the TIFF
  39  * specification itself).
  40  *
  41  * <p> This class and its subclasses are responsible for mapping
  42  * between raw tag numbers and <code>TIFFTag</code> objects, which
  43  * contain additional information about each tag, such as the tag's
  44  * name, legal data types, and mnemonic names for some or all of ts
  45  * data values.
  46  *
  47  * @since 1.9
  48  * @see   TIFFTag
  49  */
  50 public class TIFFTagSet {
  51 
  52     private SortedMap<Integer,TIFFTag> allowedTagsByNumber = new TreeMap<Integer,TIFFTag>();
  53 
  54     private SortedMap<String,TIFFTag> allowedTagsByName = new TreeMap<String,TIFFTag>();
  55 
  56     /**
  57      * Constructs a TIFFTagSet.
  58      */
  59     private TIFFTagSet() {}
  60 
  61     /**
  62      * Constructs a <code>TIFFTagSet</code>, given a <code>List</code>
  63      * of <code>TIFFTag</code> objects.
  64      *
  65      * @param tags a <code>List</code> object containing
  66      * <code>TIFFTag</code> objects to be added to this tag set.
  67      *




  27 import java.util.Collections;
  28 import java.util.Iterator;
  29 import java.util.List;
  30 import java.util.Set;
  31 import java.util.SortedMap;
  32 import java.util.SortedSet;
  33 import java.util.TreeMap;
  34 import java.util.TreeSet;
  35 
  36 /**
  37  * A class representing a set of TIFF tags.  Each tag in the set must
  38  * have a unique number (this is a limitation of the TIFF
  39  * specification itself).
  40  *
  41  * <p> This class and its subclasses are responsible for mapping
  42  * between raw tag numbers and <code>TIFFTag</code> objects, which
  43  * contain additional information about each tag, such as the tag's
  44  * name, legal data types, and mnemonic names for some or all of ts
  45  * data values.
  46  *
  47  * @since 9
  48  * @see   TIFFTag
  49  */
  50 public class TIFFTagSet {
  51 
  52     private SortedMap<Integer,TIFFTag> allowedTagsByNumber = new TreeMap<Integer,TIFFTag>();
  53 
  54     private SortedMap<String,TIFFTag> allowedTagsByName = new TreeMap<String,TIFFTag>();
  55 
  56     /**
  57      * Constructs a TIFFTagSet.
  58      */
  59     private TIFFTagSet() {}
  60 
  61     /**
  62      * Constructs a <code>TIFFTagSet</code>, given a <code>List</code>
  63      * of <code>TIFFTag</code> objects.
  64      *
  65      * @param tags a <code>List</code> object containing
  66      * <code>TIFFTag</code> objects to be added to this tag set.
  67      *


< prev index next >