public class XMPPacketScanner 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!
Thic class was branched from http://xmlgraphics.apache.org/ XMPPacketParser. See also org.semanticdesktop.aperture.extractor.xmp.XMPExtractor, a variant.
Constructor and Description |
---|
XMPPacketScanner() |
Modifier and Type | Method and Description |
---|---|
boolean |
parse(InputStream in,
OutputStream xmlOut)
Locates an XMP packet in a stream, parses it and returns the XMP metadata.
|
public boolean parse(InputStream in, OutputStream xmlOut) throws IOException
in
- the InputStream to searchxmlOut
- to write the XMP packet toIOException
- if an I/O error occursTransformerException
- if an error occurs while parsing the XMP packetCopyright © 2007-2015 The Apache Software Foundation. All Rights Reserved.