source: josm/trunk/src/com/drew/metadata/exif/ExifInteropDirectory.java@ 4231

Last change on this file since 4231 was 4231, checked in by stoecker, 14 years ago

add signpost and metadata extractor code to repository directly

File size: 2.0 KB
Line 
1/*
2 * This is public domain software - that is, you can do whatever you want
3 * with it, and include it software that is licensed under the GNU or the
4 * BSD license, or whatever other licence you choose, including proprietary
5 * closed source licenses. I do ask that you leave this header in tact.
6 *
7 * If you make modifications to this code that you think would benefit the
8 * wider community, please send me a copy and I'll post it on my site.
9 *
10 * If you make use of this code, I'd appreciate hearing about it.
11 * drew@drewnoakes.com
12 * Latest version of this software kept at
13 * http://drewnoakes.com/
14 *
15 * Created by dnoakes on 26-Nov-2002 10:58:13 using IntelliJ IDEA.
16 */
17package com.drew.metadata.exif;
18
19import com.drew.metadata.Directory;
20
21import java.util.HashMap;
22
23/**
24 *
25 */
26public class ExifInteropDirectory extends Directory
27{
28 public static final int TAG_INTEROP_INDEX = 0x0001;
29 public static final int TAG_INTEROP_VERSION = 0x0002;
30 public static final int TAG_RELATED_IMAGE_FILE_FORMAT = 0x1000;
31 public static final int TAG_RELATED_IMAGE_WIDTH = 0x1001;
32 public static final int TAG_RELATED_IMAGE_LENGTH = 0x1002;
33
34 protected static final HashMap tagNameMap;
35
36 static
37 {
38 tagNameMap = new HashMap();
39 tagNameMap.put(new Integer(TAG_INTEROP_INDEX), "Interoperability Index");
40 tagNameMap.put(new Integer(TAG_INTEROP_VERSION), "Interoperability Version");
41 tagNameMap.put(new Integer(TAG_RELATED_IMAGE_FILE_FORMAT), "Related Image File Format");
42 tagNameMap.put(new Integer(TAG_RELATED_IMAGE_WIDTH), "Related Image Width");
43 tagNameMap.put(new Integer(TAG_RELATED_IMAGE_LENGTH), "Related Image Length");
44 }
45
46 public ExifInteropDirectory()
47 {
48 this.setDescriptor(new ExifInteropDescriptor(this));
49 }
50
51 public String getName()
52 {
53 return "Interoperability";
54 }
55
56 protected HashMap getTagNameMap()
57 {
58 return tagNameMap;
59 }
60}
Note: See TracBrowser for help on using the repository browser.