|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.musicontroller.importer.MP3InspectorJID3Lib
public class MP3InspectorJID3Lib
This MP3 inpector uses the JID3Lib SourceForge project for retrieving information from MP3 files.
Constructor Summary | |
---|---|
MP3InspectorJID3Lib(java.io.File mp3file)
Constructor for a MP3Inspector. |
Method Summary | |
---|---|
java.lang.String |
getBandname()
Returns the band name of the MP3 file. |
java.lang.String |
getExtension()
Returns the extension of the song (".mp3"). |
java.io.File |
getFile()
Returns the currently analyzed file. |
java.lang.String |
getKeyword()
Returns the genre keyword. |
java.lang.String |
getPlaylistname()
Returns the playlist name of the MP3 file. |
int |
getPlaylistrow()
Returns the sequence no. |
int |
getPlaylistyear()
Returns the year of release of the playlist. |
int |
getSonglength()
Returns the song length in milliseconds. |
java.lang.String |
getSongname()
Returns the song name of the MP3 file. |
void |
inspectFile(java.lang.String filename)
Inspect the specified file as an MP3 file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MP3InspectorJID3Lib(java.io.File mp3file) throws java.io.IOException, ImporterException
mp3file
- The MP3 file to be analysed.
java.io.IOException
- The file could not be openened.
ImporterException
- The file contains invalid ID3 tags.Method Detail |
---|
public java.lang.String getBandname()
MediafileInspector
getBandname
in interface MediafileInspector
public java.lang.String getExtension()
MediafileInspector
getExtension
in interface MediafileInspector
public java.lang.String getKeyword()
MediafileInspector
getKeyword
in interface MediafileInspector
public java.lang.String getPlaylistname()
MediafileInspector
getPlaylistname
in interface MediafileInspector
public int getPlaylistrow()
MediafileInspector
getPlaylistrow
in interface MediafileInspector
public int getPlaylistyear()
MediafileInspector
getPlaylistyear
in interface MediafileInspector
public int getSonglength()
getSonglength
in interface MediafileInspector
public java.lang.String getSongname()
MediafileInspector
getSongname
in interface MediafileInspector
public void inspectFile(java.lang.String filename) throws ImporterException, java.io.IOException
MediafileInspector
inspectFile
in interface MediafileInspector
filename
- The name of the file to analyze.
ImporterException
java.io.IOException
public java.io.File getFile()
MediafileInspector
getFile
in interface MediafileInspector
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |