- All Implemented Interfaces:
public class OfficeExtractor
- extends Object
- implements Extractor
An Extractor implementation that can be used to process MS Office documents when we don't know its specific
subtype (e.g. Word, Excel, PowerPoint) or when we don't have an Extractor for that particular subtype. This
extractor is capable of extracting all metadata but not the textual contents.
Extracts full-text and metadata from the specified binary stream and stores the extracted information
as RDF statements in the specified RDFContainer.
|Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public void extract(URI id,
- Description copied from interface:
- Extracts full-text and metadata from the specified binary stream and stores the extracted information
as RDF statements in the specified RDFContainer. The optionally specified Charset and MIME type can be
used to direct how the stream should be parsed.
The specified InputStream is expected to already use some kind of buffering so that the Extractors are
not required to internally buffer bytes to improve performance.
- Specified by:
extract in interface
id - the URI identifying the object (e.g. a file or web page) from which the stream was obtained.
The generated statements should describe this URI.
stream - the InputStream delivering the raw bytes.
charset - the charset in which the inputstream is encoded (optional).
mimeType - the MIME type of the passed stream (optional).
result - the container in which this Extractor can put its created RDF statements.
ExtractorException - in case of any error during the extraction process.
Copyright © 2010 Aperture Development Team. All Rights Reserved.