org.alfresco.repo.content.metadata
Class TikaAudioMetadataExtracter
java.lang.Object
org.alfresco.repo.content.metadata.AbstractMappingMetadataExtracter
org.alfresco.repo.content.metadata.TikaPoweredMetadataExtracter
org.alfresco.repo.content.metadata.TikaAudioMetadataExtracter
- All Implemented Interfaces:
- ContentWorker, MetadataExtracter
- Direct Known Subclasses:
- MP3MetadataExtracter
public class TikaAudioMetadataExtracter
- extends TikaPoweredMetadataExtracter
A Metadata Extractor which makes use of the Apache
Tika Audio Parsers to extract metadata from your
media files.
For backwards compatibility reasons, this doesn't
handle the MP3 format, which has its own dedicated
extractor in MP3MetadataExtracter
author: -- cm:author
title: -- cm:title
created: -- cm:created
xmpDM:artist -- audio:artist
xmpDM:composer -- audio:composer
xmpDM:engineer -- audio:engineer
xmpDM:genre -- audio:genre
xmpDM:trackNumber -- audio:trackNumber
xmpDM:releaseDate -- audio:releaseDate
- Since:
- 4.0
|
Method Summary |
protected java.util.Map |
extractSpecific(org.apache.tika.metadata.Metadata metadata,
java.util.Map properties,
java.util.Map headers)
Allows implementation specific mappings
to be done. |
protected org.apache.tika.parser.Parser |
getParser()
Returns the correct Tika Parser to process
the document. |
void |
setTikaConfig(org.apache.tika.config.TikaConfig tikaConfig)
|
| Methods inherited from class org.alfresco.repo.content.metadata.AbstractMappingMetadataExtracter |
checkIsSupported, extract, extract, extract, filterSystemProperties, getDefaultMapping, getExtractionTime, getMapping, getMimetypeService, getReliability, init, isSupported, newRawMap, putRawValue, readMappingProperties, readMappingProperties, register, setDictionaryService, setFailOnTypeConversion, setInheritDefaultMapping, setMapping, setMappingProperties, setMimetypeService, setOverwritePolicy, setOverwritePolicy, setRegistry, setSupportedDateFormats, setSupportedMimetypes |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KEY_LYRICS
protected static final java.lang.String KEY_LYRICS
- See Also:
- Constant Field Values
SUPPORTED_MIMETYPES
public static java.util.ArrayList SUPPORTED_MIMETYPES
tikaConfig
protected org.apache.tika.config.TikaConfig tikaConfig
TikaAudioMetadataExtracter
public TikaAudioMetadataExtracter()
TikaAudioMetadataExtracter
public TikaAudioMetadataExtracter(java.util.ArrayList supportedMimeTypes)
setTikaConfig
public void setTikaConfig(org.apache.tika.config.TikaConfig tikaConfig)
getParser
protected org.apache.tika.parser.Parser getParser()
- Description copied from class:
TikaPoweredMetadataExtracter
- Returns the correct Tika Parser to process
the document.
If you don't know which you want, use
TikaAutoMetadataExtracter which
makes use of the Tika auto-detection.
- Specified by:
getParser in class TikaPoweredMetadataExtracter
extractSpecific
protected java.util.Map extractSpecific(org.apache.tika.metadata.Metadata metadata,
java.util.Map properties,
java.util.Map headers)
- Description copied from class:
TikaPoweredMetadataExtracter
- Allows implementation specific mappings
to be done.
- Overrides:
extractSpecific in class TikaPoweredMetadataExtracter
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.