public static char[] encode(byte[] bites) {
        return encode(bites, 0, bites.length);
    }
Hex encode an array of bytes

@param bites the array of bytes to encode.
@return the array of hex characters.
tika-core/src/main/java/org/apache/tika/mime/HexCoDec.java