medi.util
Class MP3File2Db

java.lang.Object
  |
  +--medi.util.AbstractFile2Db
        |
        +--medi.util.MP3File2Db

public class MP3File2Db
extends AbstractFile2Db

Maps an MP3 into the database, storing information about the title, sampling, author, album. Thanks go to the creator of jd3lib.


Field Summary
 
Fields inherited from class medi.util.AbstractFile2Db
extensions, prv
 
Constructor Summary
MP3File2Db()
          Creates new MP3File2Db
 
Method Summary
 java.lang.Long process(java.io.File procFile, java.lang.Integer fileTypeID)
          Processes a file.
 void setProvider(Provider pPrv)
          Sets the provider to use.
 
Methods inherited from class medi.util.AbstractFile2Db
getExtensions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MP3File2Db

public MP3File2Db()
Creates new MP3File2Db

Method Detail

setProvider

public void setProvider(Provider pPrv)
Sets the provider to use.

Overrides:
setProvider in class AbstractFile2Db
Parameters:
pPrv - The provider to use.

process

public java.lang.Long process(java.io.File procFile,
                              java.lang.Integer fileTypeID)
                       throws DbException
Processes a file.

Specified by:
process in class AbstractFile2Db
Parameters:
procFile - The file to process.
fileTypeID - Its file type ID.
Returns:
The newly created data ID.
Throws:
DbException - If something goes wrong.