public void updateXmpXml(final byte[] src, final OutputStream os, final String xmpXml) throws ImagingException, IOException {
        final ByteSource byteSource = ByteSource.array(src);
        updateXmpXml(byteSource, os, xmpXml);
    }
Reads a JPEG image, replaces the XMP XML and writes the result to a stream.

@param src    Byte array containing JPEG image data.
@param os     OutputStream to write the image to.
@param xmpXml String containing XMP XML.
@throws ImagingException if it fails to read or write the JFIF segments
@throws IOException      if it fails to read or write the data from the segments
src/main/java/org/apache/commons/imaging/formats/jpeg/xmp/JpegXmpRewriter.java