com.drew.metadata

Class Tag

public class Tag extends Object implements Serializable

Constructor Summary
Tag(int tagType, Directory directory)
Method Summary
StringgetDescription()
Get a description of the tag's value, considering enumerated values and units.
StringgetDirectoryName()
Get the name of the directory in which the tag exists, such as Exif, GPS or Interoperability.
StringgetTagName()
Get the name of the tag, such as Aperture, or InteropVersion.
intgetTagType()
Gets the tag type as an int
StringgetTagTypeHex()
Gets the tag type in hex notation as a String with padded leading zeroes if necessary (i.e.
StringtoString()
A basic representation of the tag's type and value in format: FNumber - F2.8.

Constructor Detail

Tag

public Tag(int tagType, Directory directory)

Method Detail

getDescription

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

Returns: a description of the tag's value

getDirectoryName

public String getDirectoryName()
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

getTagName

public String getTagName()
Get the name of the tag, such as Aperture, or InteropVersion.

Returns: the tag's name

getTagType

public int getTagType()
Gets the tag type as an int

Returns: the tag type as an int

getTagTypeHex

public String getTagTypeHex()
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

toString

public String toString()
A basic representation of the tag's type and value in format: FNumber - F2.8.

Returns: the tag's type and value

Copyright © 2006 Drew Noakes. All Rights Reserved.