private static short flipEndian(short signedShort) {
        int input = signedShort & 0xFFFF;
        return (short) (input << 8 | (input & 0xFF00) >>> 8);
    }
<code>flipEndian</code> is used to flip the endian bit of the header
file.

@param signedShort
           the bit to flip.
@return the flipped bit.
jme3-core/src/plugins/java/com/jme3/texture/plugins/TGALoader.java