public final class XMPPacketParser extends 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 and Description |
|---|---|
static Metadata |
parse(InputStream in)
Locates an XMP packet in a stream, parses it and returns the XMP metadata.
|
public static Metadata parse(InputStream in) throws IOException, TransformerException
in - the InputStream to searchIOException - if an I/O error occursTransformerException - if an error occurs while parsing the XMP packetCopyright 1999-2012 The Apache Software Foundation. All Rights Reserved.