Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: com/drew/metadata/DefaultTagDescriptor.java


1   /*
2    * Created by dnoakes on 22-Nov-2002 16:45:19 using IntelliJ IDEA.
3    */
4   package com.drew.metadata;
5   
6   /**
7    *
8    */
9   public class DefaultTagDescriptor extends TagDescriptor
10  {
11      public DefaultTagDescriptor(Directory directory)
12      {
13          super(directory);
14      }
15  
16      public String getTagName(int tagType)
17      {
18          String hex = Integer.toHexString(tagType).toUpperCase();
19          while (hex.length() < 4) hex = "0" + hex;
20          return "Unknown tag 0x" + hex;
21      }
22  
23      public String getDescription(int tagType) throws MetadataException
24      {
25          return _directory.getString(tagType);
26      }
27  }