Class MetadataExtractor.JpegDescriptor

Enclosing class:
MetadataExtractor

public class MetadataExtractor.JpegDescriptor extends MetadataExtractor.TagDescriptor<MetadataExtractor.JpegDirectory>
Provides human-readable string versions of the tags stored in a JpegDirectory. Thanks to Darrell Silver (www.darrellsilver.com) for the initial version of this class.
Author:
Drew Noakes https://drewnoakes.com
  • Field Details

    • TAG_COMPRESSION_TYPE

      public static final int TAG_COMPRESSION_TYPE
      See Also:
    • TAG_DATA_PRECISION

      public static final int TAG_DATA_PRECISION
      This is in bits/sample, usually 8 (12 and 16 not supported by most software).
      See Also:
    • TAG_IMAGE_HEIGHT

      public static final int TAG_IMAGE_HEIGHT
      The image's height. Necessary for decoding the image, so it should always be there.
      See Also:
    • TAG_IMAGE_WIDTH

      public static final int TAG_IMAGE_WIDTH
      The image's width. Necessary for decoding the image, so it should always be there.
      See Also:
    • TAG_COMPONENT_DATA_1

      public static final int TAG_COMPONENT_DATA_1
      the first of a possible 4 color components. Number of components specified in TAG_NUMBER_OF_COMPONENTS.
      See Also:
    • TAG_COMPONENT_DATA_2

      public static final int TAG_COMPONENT_DATA_2
      the second of a possible 4 color components. Number of components specified in TAG_NUMBER_OF_COMPONENTS.
      See Also:
    • TAG_COMPONENT_DATA_3

      public static final int TAG_COMPONENT_DATA_3
      the third of a possible 4 color components. Number of components specified in TAG_NUMBER_OF_COMPONENTS.
      See Also:
    • TAG_COMPONENT_DATA_4

      public static final int TAG_COMPONENT_DATA_4
      the fourth of a possible 4 color components. Number of components specified in TAG_NUMBER_OF_COMPONENTS.
      See Also:
  • Constructor Details

  • Method Details

    • getDescription

      public String getDescription(int tagType)
      Description copied from class: MetadataExtractor.TagDescriptor
      Returns a descriptive value of the specified tag for this image. Where possible, known values will be substituted here in place of the raw tokens actually kept in the metadata segment. If no substitution is available, the value provided by getString(tagType) will be returned.
      Overrides:
      getDescription in class MetadataExtractor.TagDescriptor<MetadataExtractor.JpegDirectory>
      Parameters:
      tagType - the tag to find a description for
      Returns:
      a description of the image's value for the specified tag, or null if the tag hasn't been defined.
    • getImageCompressionTypeDescription

      public String getImageCompressionTypeDescription()
    • getImageWidthDescription

      public String getImageWidthDescription()
    • getImageHeightDescription

      public String getImageHeightDescription()
    • getDataPrecisionDescription

      public String getDataPrecisionDescription()
    • getComponentDataDescription

      public String getComponentDataDescription(int componentNumber)