Class Tag

java.lang.Object
com.drew.metadata.Tag

@Deprecated(since="2024-11-20") public class Tag extends Object
Deprecated.
Usage of this API is not supported in AEM as a Cloud Service.
Models a particular tag within a Directory and provides methods for obtaining its value. Immutable.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Tag(int tagType, Directory directory)
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated.
    Get a description of the tag's value, considering enumerated values and units.
    Deprecated.
    Get the name of the Directory in which the tag exists, such as Exif, GPS or Interoperability.
    Deprecated.
    Get the name of the tag, such as Aperture, or InteropVersion.
    int
    Deprecated.
    Gets the tag type as an int
    Deprecated.
    Gets the tag type in hex notation as a String with padded leading zeroes if necessary (i.e.
    boolean
    Deprecated.
    Get whether this tag has a name.
    Deprecated.
    A basic representation of the tag's type and value.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Tag

      public Tag(int tagType, Directory directory)
      Deprecated.
  • Method Details

    • getTagType

      public int getTagType()
      Deprecated.
      Gets the tag type as an int
      Returns:
      the tag type as an int
    • getTagTypeHex

      public String getTagTypeHex()
      Deprecated.
      Gets the tag type in hex notation as a String with padded leading zeroes if necessary (i.e. 0x100e).
      Returns:
      the tag type as a string in hexadecimal notation
    • getDescription

      public String getDescription()
      Deprecated.
      Get a description of the tag's value, considering enumerated values and units.
      Returns:
      a description of the tag's value
    • hasTagName

      public boolean hasTagName()
      Deprecated.
      Get whether this tag has a name. If true, it may be accessed via getTagName(). If false, getTagName() will return a string resembling "Unknown tag (0x1234)".
      Returns:
      whether this tag has a name
    • getTagName

      public String getTagName()
      Deprecated.
      Get the name of the tag, such as Aperture, or InteropVersion.
      Returns:
      the tag's name
    • getDirectoryName

      public String getDirectoryName()
      Deprecated.
      Get the name of the Directory in which the tag exists, such as Exif, GPS or Interoperability.
      Returns:
      name of the Directory in which this tag exists
    • toString

      public String toString()
      Deprecated.
      A basic representation of the tag's type and value. EG: [Exif IFD0] FNumber - f/2.8.
      Overrides:
      toString in class Object
      Returns:
      the tag's type and value