public final class XMPPacketParser
extends java.lang.Object
Important: Before you use this class to look for an XMP packet in some random file, please read the chapter on "Scanning Files for XMP Packets" in the XMP specification!
Modifier and Type | Method | Description |
---|---|---|
static Metadata |
parse(java.io.InputStream in) |
Locates an XMP packet in a stream, parses it and returns the XMP metadata.
|
public static Metadata parse(java.io.InputStream in) throws java.io.IOException, javax.xml.transform.TransformerException
in
- the InputStream to searchjava.io.IOException
- if an I/O error occursjavax.xml.transform.TransformerException
- if an error occurs while parsing the XMP packetCopyright 1999-2016 The Apache Software Foundation. All Rights Reserved.