Class XMPUtils

java.lang.Object
is.galia.codec.xmp.XMPUtils

public final class XMPUtils extends Object
  • Constructor Details

    • XMPUtils

      public XMPUtils()
  • Method Details

    • readModel

      public static org.apache.jena.rdf.model.Model readModel(String rdfXML)
    • trimXMP

      public static String trimXMP(String xmp)
      Strips any enclosing tags or other content around the rdf:RDF element within an RDF/XML XMP string.
    • wrapInXPacket

      public static String wrapInXPacket(String xmp)
      Wraps an XMP string in an xpacket PI with magic trailer.
      Parameters:
      xmp - XMP string with an rdf:RDF root element.
      Returns:
      Encapsulated XMP data packet.
    • wrapInXMPMetaTag

      public static String wrapInXMPMetaTag(String xmp)
      Returns an XMP string encapsulated in an x:xmpmeta element, which is itself encapsulated in an xpacket PI.
      Parameters:
      xmp - XMP string with an rdf:RDF root element.
      Returns:
      Encapsulated XMP data packet.