net.sf.regain.crawler.preparator
Class MP3Preparator
java.lang.Object
net.sf.regain.crawler.document.AbstractPreparator
net.sf.regain.crawler.preparator.MP3Preparator
- All Implemented Interfaces:
- Pluggable, Preparator, WriteablePreparator
public class MP3Preparator
- extends AbstractPreparator
Prepares a mp3 file for indexing of metadata
The following information from the audio tag (ID3v2 or ID3v1) will be extracted:
artist, album, title, year, length, bitrate
- Author:
- Thomas Tesche, cluster:Consult, http://www.thtesche.com/
Constructor Summary |
MP3Preparator()
Creates a new instance of MP3Preparator. |
Methods inherited from class net.sf.regain.crawler.document.AbstractPreparator |
accepts, addAdditionalField, cleanUp, close, concatenateStringParts, getAdditionalFields, getCleanedContent, getCleanedMetaData, getHeadlines, getPath, getPriority, getSummary, getTitle, init, setCleanedContent, setCleanedMetaData, setHeadlines, setPath, setPriority, setSummary, setTitle, setUrlRegex |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MP3Preparator
public MP3Preparator()
throws RegainException
- Creates a new instance of MP3Preparator.
- Throws:
RegainException
- If creating the preparator failed.
prepare
public void prepare(RawDocument rawDocument)
throws RegainException
- Prepares the document for indexing
- Parameters:
rawDocument
- the document
- Throws:
RegainException
- if preparation goes wrong
prepareFile
protected void prepareFile(File rawFile,
String origUrl)
throws org.jaudiotagger.audio.exceptions.ReadOnlyFileException,
RegainException
- Throws:
org.jaudiotagger.audio.exceptions.ReadOnlyFileException
RegainException
Regain 2.1.0-STABLE, Copyright (C) 2004-2010 Til Schneider, www.murfman.de, Thomas Tesche, www.clustersystems.info