org.alfresco.repo.content.metadata
Class MP3MetadataExtracter
java.lang.Object
org.alfresco.repo.content.metadata.AbstractMappingMetadataExtracter
org.alfresco.repo.content.metadata.TikaPoweredMetadataExtracter
org.alfresco.repo.content.metadata.MP3MetadataExtracter
- All Implemented Interfaces:
- ContentWorker, MetadataExtracter
public class MP3MetadataExtracter
- extends TikaPoweredMetadataExtracter
Extracts the following values from MP3 files:
songTitle: -- {music}songTitle, cm:title
albumTitle: -- {music}albumTitle
artist: -- {music}artist, cm:author
description: -- cm:description
comment: -- {music}comment
yearReleased: -- {music}yearReleased
trackNumber: -- {music}trackNumber
genre: -- {music}genre
composer: -- {music}composer
lyrics: -- {music}lyrics
TODO Get hold of a mp3 file with some lyrics in it, so we
can contribute the patch to Tika
Uses Apache Tika
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. |
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 |
SUPPORTED_MIMETYPES
public static java.util.ArrayList SUPPORTED_MIMETYPES
MP3MetadataExtracter
public MP3MetadataExtracter()
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.