Class TagDescriptor<T extends Directory>

    • Constructor Detail

      • TagDescriptor

        public TagDescriptor​(T directory)
    • Method Detail

      • getDescription

        public String getDescription​(int tagType)
        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.
        tagType - the tag to find a description for
        a description of the image's value for the specified tag, or null if the tag hasn't been defined.
      • convertBytesToVersionString

        public static String convertBytesToVersionString​(int[] components,
                                                         int majorDigits)
        Takes a series of 4 bytes from the specified offset, and converts these to a well-known version number, where possible.

        Two different formats are processed:

        • [30 32 31 30] -> 2.10
        • [0 1 0 0] -> 1.00
        components - the four version values
        majorDigits - the number of components to be
        the version as a string of form "2.10" or null if the argument cannot be converted