Class XMPMetaParser


  • public class XMPMetaParser
    extends java.lang.Object
    This class replaces the ExpatAdapter.cpp and does the XML-parsing and fixes the prefix. After the parsing several normalisations are applied to the XMPTree.
    Since:
    01.02.2006
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static XMPMeta parse​(java.lang.Object input, ParseOptions options)
      Parses the input source into an XMP metadata object, including de-aliasing and normalisation.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • parse

        public static XMPMeta parse​(java.lang.Object input,
                                    ParseOptions options)
                             throws XMPException
        Parses the input source into an XMP metadata object, including de-aliasing and normalisation.
        Parameters:
        input - the input can be an InputStream, a String or a byte buffer containing the XMP packet.
        options - the parse options
        Returns:
        Returns the resulting XMP metadata object
        Throws:
        XMPException - Thrown if parsing or normalisation fails.