Changeset 8243 in josm for trunk/src/com/drew/metadata/exif/ExifInteropDescriptor.java
- Timestamp:
- 2015-04-21T00:42:50+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/com/drew/metadata/exif/ExifInteropDescriptor.java
r8132 r8243 22 22 23 23 import com.drew.lang.annotations.NotNull; 24 import com.drew.lang.annotations.Nullable;25 import com.drew.metadata.TagDescriptor;26 27 import static com.drew.metadata.exif.ExifInteropDirectory.*;28 24 29 25 /** … … 32 28 * @author Drew Noakes https://drewnoakes.com 33 29 */ 34 public class ExifInteropDescriptor extends TagDescriptor<ExifInteropDirectory>30 public class ExifInteropDescriptor extends ExifDescriptorBase<ExifInteropDirectory> 35 31 { 36 32 public ExifInteropDescriptor(@NotNull ExifInteropDirectory directory) … … 38 34 super(directory); 39 35 } 40 41 @Override42 @Nullable43 public String getDescription(int tagType)44 {45 switch (tagType) {46 case TAG_INTEROP_INDEX:47 return getInteropIndexDescription();48 case TAG_INTEROP_VERSION:49 return getInteropVersionDescription();50 default:51 return super.getDescription(tagType);52 }53 }54 55 @Nullable56 public String getInteropVersionDescription()57 {58 return getVersionBytesDescription(TAG_INTEROP_VERSION, 2);59 }60 61 @Nullable62 public String getInteropIndexDescription()63 {64 String value = _directory.getString(TAG_INTEROP_INDEX);65 66 if (value == null)67 return null;68 69 return "R98".equalsIgnoreCase(value.trim())70 ? "Recommended Exif Interoperability Rules (ExifR98)"71 : "Unknown (" + value + ")";72 }73 36 }
Note:
See TracChangeset
for help on using the changeset viewer.