public class OpenOfficeMetadataExtracter extends AbstractMappingMetadataExtracter implements OpenOfficeMetadataWorker
author: -- cm:author title: -- cm:title description: -- cm:descriptionNote - not converted to Apache Tika, as currently Tika lacks support for these older formats
MetadataExtracter.OverwritePolicy| Modifier and Type | Field and Description |
|---|---|
static java.lang.String[] |
SUPPORTED_MIMETYPES |
logger, NAMESPACE_PROPERTY_PREFIX, supportedDateFormats| Constructor and Description |
|---|
OpenOfficeMetadataExtracter() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Map |
extractRaw(org.alfresco.service.cmr.repository.ContentReader reader)
Override to provide the raw extracted metadata values.
|
void |
init()
Initialises the bean by establishing an UNO connection
|
boolean |
isConnected() |
boolean |
isSupported(java.lang.String sourceMimetype)
Perform the default check, but also check if the OpenOffice connection is good.
|
void |
setWorker(OpenOfficeMetadataWorker worker) |
checkIsSupported, extract, extract, extract, filterSystemProperties, getDefaultMapping, getExtractionTime, getMapping, getMimetypeService, getReliability, makeDate, newRawMap, putRawValue, readMappingProperties, readMappingProperties, register, setDictionaryService, setFailOnTypeConversion, setInheritDefaultMapping, setMapping, setMappingProperties, setMimetypeService, setOverwritePolicy, setOverwritePolicy, setRegistry, setSupportedDateFormats, setSupportedMimetypespublic void setWorker(OpenOfficeMetadataWorker worker)
public void init()
init in class AbstractMappingMetadataExtracterpublic boolean isConnected()
isConnected in interface OpenOfficeMetadataWorkerpublic boolean isSupported(java.lang.String sourceMimetype)
isSupported in interface MetadataExtracterisSupported in class AbstractMappingMetadataExtractersourceMimetype - the document mimetypeAbstractMappingMetadataExtracter.setSupportedMimetypes(Collection)public java.util.Map extractRaw(org.alfresco.service.cmr.repository.ContentReader reader)
throws java.lang.Throwable
default mapping doesn't handle all properties, it is
possible for each instance of the extracter to be configured differently and more or
less of the properties may be used in different installations.
Raw values must not be trimmed or removed for any reason. Null values and empty strings are
OverwritePolicyProperties extracted and their meanings and types should be thoroughly described in the class-level javadocs of the extracter implementation, for example:
editor: - the document editor --> cm:author title: - the document title --> cm:title user1: - the document summary user2: - the document description --> cm:description user3: - user4: -
extractRaw in interface OpenOfficeMetadataWorkerextractRaw in class AbstractMappingMetadataExtracterreader - the document to extract the values from. This stream provided by
the reader must be closed if accessed directly.java.lang.ThrowableAbstractMappingMetadataExtracter.getDefaultMapping()Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.