Back to project page PictureMap.
The source code is released under:
GNU General Public License
If you think the Android project PictureMap listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
/* * This is public domain software - that is, you can do whatever you want * with it, and include it software that is licensed under the GNU or the * BSD license, or whatever other licence you choose, including proprietary * closed source licenses. I do ask that you leave this header in tact. */* w w w.jav a2 s . c o m*/ * If you make modifications to this code that you think would benefit the * wider community, please send me a copy and I'll post it on my site. * * If you make use of this code, I'd appreciate hearing about it. * drew@drewnoakes.com * Latest version of this software kept at * http://drewnoakes.com/ * * Created by dnoakes on 12-Nov-2002 22:27:34 using IntelliJ IDEA. */ package com.drewChanged.metadata.exif; import com.drewChanged.metadata.Directory; import com.drewChanged.metadata.MetadataException; import com.drewChanged.metadata.TagDescriptor; /** * */ public class ExifInteropDescriptor extends TagDescriptor { public ExifInteropDescriptor(Directory directory) { super(directory); } public String getDescription(int tagType) throws MetadataException { switch (tagType) { case ExifInteropDirectory.TAG_INTEROP_INDEX: return getInteropIndexDescription(); case ExifInteropDirectory.TAG_INTEROP_VERSION: return getInteropVersionDescription(); default: return _directory.getString(tagType); } } public String getInteropVersionDescription() throws MetadataException { if (!_directory.containsTag(ExifInteropDirectory.TAG_INTEROP_VERSION)) return null; int[] ints = _directory.getIntArray(ExifInteropDirectory.TAG_INTEROP_VERSION); return ExifDescriptor.convertBytesToVersionString(ints); } public String getInteropIndexDescription() { if (!_directory.containsTag(ExifInteropDirectory.TAG_INTEROP_INDEX)) return null; String interopIndex = _directory.getString(ExifInteropDirectory.TAG_INTEROP_INDEX).trim(); if ("R98".equalsIgnoreCase(interopIndex)) { return "Recommended Exif Interoperability Rules (ExifR98)"; } else { return "Unknown (" + interopIndex + ")"; } } }