Class NonConvertedTag

java.lang.Object
com.thebuzzmedia.exiftool.core.NonConvertedTag
All Implemented Interfaces:
Tag

public final class NonConvertedTag extends Object implements Tag
Utility class used to generate tags which are not print converted. This is done in Exiftool by suffixing # to the tag and it has the same effect of -n but applied on a per-tag basis. The class wraps another tag and manages its different query name. By design NonConvertedTag.of(Tag.ANY) is not equal to Tag.ANY since it's possible to query two different formats of the same tag.
Author:
Jack ([email protected])
  • Method Details

    • of

      public static NonConvertedTag of(Tag original)
      Create the tag from given original one.
      Parameters:
      original - The original one.
      Returns:
      The new tag.
    • getName

      public String getName()
      Description copied from interface: Tag
      Used to get the name of the tag (e.g. "Orientation", "ISO", etc.). This is the value actually used to invoke the tool.
      Specified by:
      getName in interface Tag
      Returns:
      Name of the tag.
    • getDisplayName

      public String getDisplayName()
      Description copied from interface: Tag
      Used to get the display name of the tag, which is the actual name printed by the tool on stout. For simple tags this is equivalent to value returned by getName.
      Specified by:
      getDisplayName in interface Tag
      Returns:
      Display name of the tag.
    • parse

      public <T> T parse(String value)
      Description copied from interface: Tag
      Parse given tag to the correct data format.
      Specified by:
      parse in interface Tag
      Type Parameters:
      T - Type of returned value.
      Parameters:
      value - Tag Value.
      Returns:
      Data associated with the tag.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object