xmlgraphics-commons 1.5

org.apache.xmlgraphics.xmp
Class XMPParser

java.lang.Object
  extended by 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

xmlgraphics-commons 1.5

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