XMPUtil4J is a small library of XMP related utilities for Java. It is shipped with full source to ease debugging.
The work is based on various forum posts and an article about how to embed XMP in different file formats.
XMPUtil4J has been tested with Lightroom v2.3.
JpegXmpInputStream capable of returning XMP data from another InputStream containing JPEG dataJpegXmpInputStream.close() now also closes the JPEG streamXMPUtil4J may be used in both commercial and non-commercial projects as long as I am notified and a link back to http://www.pkg.dk is present on the project web site. It may be distributed along with the project that uses it. All other form of distribution is not permitted without explicit permission. The source code of XMPUtil4J is available solely to aid in debugging and to serve as documentation where sufficient documentation is unavailable. The source code may not be embedded partly or in full without explicit permission. XMPUtil4J comes with no guarantee what so ever, so use at your own risk.
The material on this site may only be used with permission.