Changeset 8132 in josm for trunk/src/com/drew/metadata/exif/ExifInteropDescriptor.java
- Timestamp:
- 2015-03-10T01:17:39+01:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/com/drew/metadata/exif/ExifInteropDescriptor.java
r6127 r8132 1 1 /* 2 * Copyright 2002-201 2Drew Noakes2 * Copyright 2002-2015 Drew Noakes 3 3 * 4 4 * Licensed under the Apache License, Version 2.0 (the "License"); … … 16 16 * More information about this project is available at: 17 17 * 18 * http://drewnoakes.com/code/exif/ 19 * http ://code.google.com/p/metadata-extractor/18 * https://drewnoakes.com/code/exif/ 19 * https://github.com/drewnoakes/metadata-extractor 20 20 */ 21 21 package com.drew.metadata.exif; … … 25 25 import com.drew.metadata.TagDescriptor; 26 26 27 import static com.drew.metadata.exif.ExifInteropDirectory.*; 28 27 29 /** 28 * Provides human-readable string representations of tag values stored in a <code>ExifInteropDirectory</code>.30 * Provides human-readable string representations of tag values stored in a {@link ExifInteropDirectory}. 29 31 * 30 * @author Drew Noakes http://drewnoakes.com 32 * @author Drew Noakes https://drewnoakes.com 31 33 */ 32 34 public class ExifInteropDescriptor extends TagDescriptor<ExifInteropDirectory> … … 37 39 } 38 40 41 @Override 39 42 @Nullable 40 43 public String getDescription(int tagType) 41 44 { 42 45 switch (tagType) { 43 case ExifInteropDirectory.TAG_INTEROP_INDEX:46 case TAG_INTEROP_INDEX: 44 47 return getInteropIndexDescription(); 45 case ExifInteropDirectory.TAG_INTEROP_VERSION:48 case TAG_INTEROP_VERSION: 46 49 return getInteropVersionDescription(); 47 50 default: … … 53 56 public String getInteropVersionDescription() 54 57 { 55 int[] ints = _directory.getIntArray(ExifInteropDirectory.TAG_INTEROP_VERSION); 56 return convertBytesToVersionString(ints, 2); 58 return getVersionBytesDescription(TAG_INTEROP_VERSION, 2); 57 59 } 58 60 … … 60 62 public String getInteropIndexDescription() 61 63 { 62 String value = _directory.getString( ExifInteropDirectory.TAG_INTEROP_INDEX);64 String value = _directory.getString(TAG_INTEROP_INDEX); 63 65 64 if (value ==null)66 if (value == null) 65 67 return null; 66 68
Note:
See TracChangeset
for help on using the changeset viewer.