Source code: com/drew/metadata/exif/ExifInteropDirectory.java
1 /*
2 * Created by dnoakes on 26-Nov-2002 10:58:13 using IntelliJ IDEA.
3 */
4 package com.drew.metadata.exif;
5
6 import com.drew.metadata.Directory;
7
8 import java.util.HashMap;
9
10 /**
11 *
12 */
13 public class ExifInteropDirectory extends Directory
14 {
15 public static final int TAG_INTEROP_INDEX = 0x0001;
16 public static final int TAG_INTEROP_VERSION = 0x0002;
17 public static final int TAG_RELATED_IMAGE_FILE_FORMAT = 0x1000;
18 public static final int TAG_RELATED_IMAGE_WIDTH = 0x1001;
19 public static final int TAG_RELATED_IMAGE_LENGTH = 0x1002;
20
21 protected static HashMap tagNameMap;
22
23 static
24 {
25 tagNameMap = new HashMap();
26 tagNameMap.put(new Integer(TAG_INTEROP_INDEX), "Interoperability Index");
27 tagNameMap.put(new Integer(TAG_INTEROP_VERSION), "Interoperability Version");
28 tagNameMap.put(new Integer(TAG_RELATED_IMAGE_FILE_FORMAT), "Related Image File Format");
29 tagNameMap.put(new Integer(TAG_RELATED_IMAGE_WIDTH), "Related Image Width");
30 tagNameMap.put(new Integer(TAG_RELATED_IMAGE_LENGTH), "Related Image Length");
31 }
32
33 public ExifInteropDirectory()
34 {
35 this.setDescriptor(new ExifInteropDescriptor(this));
36 }
37
38 public String getName()
39 {
40 return "Interoperability";
41 }
42
43 protected HashMap getTagNameMap()
44 {
45 return tagNameMap;
46 }
47 }