Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| xmlgraphics-commons 2.1
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.xmlgraphics.xmp
Class XMPParser

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

    public final class XMPParser

extends Object

The XMP parser.

Method Summary
`static XMPHandler` | `createXMPHandler()` Creates and returns an XMPHandler for passive XMP parsing.
`static Metadata` | `parseXMP(Source src)` Parses an XMP file.
`static Metadata` | `parseXMP(URL url)` Parses an XMP file.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Method Detail

### 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

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| xmlgraphics-commons 2.1
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright 1999-2016 The Apache Software Foundation. All Rights Reserved.