Package org.apache.xmlgraphics.xmp
Class XMPParser
java.lang.Object
org.apache.xmlgraphics.xmp.XMPParser
The XMP parser.
-
Method Summary
Modifier and TypeMethodDescriptionstatic XMPHandler
Creates and returns an XMPHandler for passive XMP parsing.static Metadata
Parses an XMP file.static Metadata
Parses an XMP file.
-
Method Details
-
parseXMP
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
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
Creates and returns an XMPHandler for passive XMP parsing.- Returns:
- the requested XMPHandler
-