org.semanticdesktop.aperture.extractor.xmp
Class XMPExtractor
java.lang.Object
org.semanticdesktop.aperture.extractor.xmp.XMPExtractor
- All Implemented Interfaces:
- Extractor
public class XMPExtractor
- extends Object
- implements Extractor
A Refactoring of the Apache XML Graphics Commons XMP reader. This
Extractor
locates the XMP packet and extracts the RDF/XML data.
- Version:
- $Revision:$
- Author:
- Ryan J. McDonough
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMPExtractor
public XMPExtractor()
extract
public void extract(URI uri,
InputStream in,
Charset charset,
String mimeType,
RDFContainer result)
throws ExtractorException
- Locates an XMP packet in a stream, parses it and returns the XMP
metadata. If no XMP packet is found until the stream ends, null is
returned. Note: This method only finds the first XMP packet in a stream.
And it cannot determine whether it has found the right XMP packet if
there are multiple packets.
- Specified by:
extract
in interface Extractor
- Parameters:
in
- the InputStream to searchmodel
- namespace
-
- Throws:
ExtractorException
- in case of any error during the extraction process.
Copyright © 2010 Aperture Development Team. All Rights Reserved.