Ignore:
Timestamp:
2015-04-21T00:42:50+02:00 (10 years ago)
Author:
Don-vip
Message:

fix #11359 - update to metadata-extractor 2.8.1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/com/drew/metadata/exif/ExifInteropDescriptor.java

    r8132 r8243  
    2222
    2323import 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.*;
    2824
    2925/**
     
    3228 * @author Drew Noakes https://drewnoakes.com
    3329 */
    34 public class ExifInteropDescriptor extends TagDescriptor<ExifInteropDirectory>
     30public class ExifInteropDescriptor extends ExifDescriptorBase<ExifInteropDirectory>
    3531{
    3632    public ExifInteropDescriptor(@NotNull ExifInteropDirectory directory)
     
    3834        super(directory);
    3935    }
    40 
    41     @Override
    42     @Nullable
    43     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     @Nullable
    56     public String getInteropVersionDescription()
    57     {
    58         return getVersionBytesDescription(TAG_INTEROP_VERSION, 2);
    59     }
    60 
    61     @Nullable
    62     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     }
    7336}
Note: See TracChangeset for help on using the changeset viewer.