source: josm/trunk/src/com/drew/metadata/exif/ExifIFD0Directory.java@ 10862

Last change on this file since 10862 was 10862, checked in by Don-vip, 8 years ago

update to metadata-extractor 2.9.1

  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 1.7 KB
Line 
1/*
2 * Copyright 2002-2016 Drew Noakes
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 *
16 * More information about this project is available at:
17 *
18 * https://drewnoakes.com/code/exif/
19 * https://github.com/drewnoakes/metadata-extractor
20 */
21
22package com.drew.metadata.exif;
23
24import java.util.HashMap;
25
26import com.drew.lang.annotations.NotNull;
27
28/**
29 * Describes Exif tags from the IFD0 directory.
30 *
31 * @author Drew Noakes https://drewnoakes.com
32 */
33public class ExifIFD0Directory extends ExifDirectoryBase
34{
35 /** This tag is a pointer to the Exif SubIFD. */
36 public static final int TAG_EXIF_SUB_IFD_OFFSET = 0x8769;
37
38 /** This tag is a pointer to the Exif GPS IFD. */
39 public static final int TAG_GPS_INFO_OFFSET = 0x8825;
40
41 public ExifIFD0Directory()
42 {
43 this.setDescriptor(new ExifIFD0Descriptor(this));
44 }
45
46 @NotNull
47 protected static final HashMap<Integer, String> _tagNameMap = new HashMap<Integer, String>();
48
49 static
50 {
51 addExifTagNames(_tagNameMap);
52 }
53
54 @Override
55 @NotNull
56 public String getName()
57 {
58 return "Exif IFD0";
59 }
60
61 @Override
62 @NotNull
63 protected HashMap<Integer, String> getTagNameMap()
64 {
65 return _tagNameMap;
66 }
67}
Note: See TracBrowser for help on using the repository browser.