Ignore:
Timestamp:
2016-08-20T20:58:03+02:00 (8 years ago)
Author:
Don-vip
Message:

update to metadata-extractor 2.9.1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/com/drew/metadata/Tag.java

    r8132 r10862  
    11/*
    2  * Copyright 2002-2015 Drew Noakes
     2 * Copyright 2002-2016 Drew Noakes
    33 *
    44 *    Licensed under the Apache License, Version 2.0 (the "License");
     
    5454    /**
    5555     * Gets the tag type in hex notation as a String with padded leading
    56      * zeroes if necessary (i.e. <code>0x100E</code>).
     56     * zeroes if necessary (i.e. <code>0x100e</code>).
    5757     *
    5858     * @return the tag type as a string in hexadecimal notation
     
    6161    public String getTagTypeHex()
    6262    {
    63         String hex = Integer.toHexString(_tagType);
    64         while (hex.length() < 4) hex = "0" + hex;
    65         return "0x" + hex;
     63        return String.format("0x%04x", _tagType);
    6664    }
    6765
     
    117115
    118116    /**
    119      * A basic representation of the tag's type and value.  EG: <code>[FNumber] F2.8</code>.
     117     * A basic representation of the tag's type and value.  EG: <code>[Exif IFD0] FNumber - f/2.8</code>.
    120118     *
    121119     * @return the tag's type and value
Note: See TracChangeset for help on using the changeset viewer.