|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.musicontroller.core.jobs.MetadataExtractJob
public class MetadataExtractJob
This Job is responsible for extracting and finding metadata from music-files. Job that must be called periodically. When this Job is run, look in the Unpack-directory for work to do. When there were files to be inspected, they are inspected one by one. Finally, a new MusicArchiveBean is added to the internal collection of beans in this class.
Every once in a while, this Collection should be read and processed.
TODO The 'unpack'-directory should be periodically scanned. Empty directories can be deleted.
| Constructor Summary | |
|---|---|
MetadataExtractJob()
Creates a new MetadataExtractJob object. |
|
| Method Summary | |
|---|---|
int |
execute()
Call this method to execute the job: scan for work to do, and work! |
static java.util.List<MusicArchiveBean> |
getMusicArchiveBeanList()
|
protected static java.io.File |
getPersistentStorage()
|
protected java.lang.String |
guessName(MusicArchiveBean archiveBean)
Tries to generate a human-readable name for a music archive. |
static void |
removeMusicArchiveBean(MusicArchiveBean archiveBean)
Removes a music archive bean from (persistent) storage. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MetadataExtractJob()
| Method Detail |
|---|
public static java.util.List<MusicArchiveBean> getMusicArchiveBeanList()
public static void removeMusicArchiveBean(MusicArchiveBean archiveBean)
throws ImporterException
Only directories within the unpack directory can be removed. Path specifications containing .. are forbidden.
archiveBean - The archive bean to be removed.
ImporterExceptionprotected static java.io.File getPersistentStorage()
public int execute()
protected java.lang.String guessName(MusicArchiveBean archiveBean)
archiveBean - The music archive.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||