Class UnspecifiedTag

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

public final class UnspecifiedTag extends Object implements Tag
Class that can represent any tag, not just the standard tags.

Since the type of value is unknown, typed parsing is not possible, and the tag does not know whether multiple values are expected or not. Consequently, when parsing, it returns a String[] regardless of whether the tag will ever have multiple values. Further parsing is then up to the caller.

Author:
David Edwards ([email protected])
  • Constructor Details

    • UnspecifiedTag

      public UnspecifiedTag(String name)
      Create tag.
      Parameters:
      name - Tag name.
  • Method Details

    • 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
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object