Class XMPParser

java.lang.Object
org.apache.xmlgraphics.xmp.XMPParser

public final class XMPParser extends Object
The XMP parser.
  • Method Details

    • parseXMP

      public static Metadata parseXMP(URL url) throws TransformerException
      Parses an XMP file.
      Parameters:
      url - the URL to load the file from
      Returns:
      the parsed Metadata object
      Throws:
      TransformerException - if an error occurs while parsing the file
    • parseXMP

      public static Metadata parseXMP(Source src) throws TransformerException
      Parses an XMP file.
      Parameters:
      src - a JAXP Source object where the XMP file can be loaded from
      Returns:
      the parsed Metadata object
      Throws:
      TransformerException - if an error occurs while parsing the file
    • createXMPHandler

      public static XMPHandler createXMPHandler()
      Creates and returns an XMPHandler for passive XMP parsing.
      Returns:
      the requested XMPHandler