org.musicontroller.importer
Interface MediafileInspector

All Known Implementing Classes:
MP3InspectorJID3Lib

public interface MediafileInspector


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.
 

Method Detail

inspectFile

void inspectFile(java.lang.String filename)
                 throws ImporterException,
                        java.io.IOException
Inspect the specified file as an MP3 file. The same inspector can be re-used by calling inspectFile() repeatedly.

Parameters:
filename - The name of the file to analyze.
Throws:
ImporterException
java.io.IOException

getSongname

java.lang.String getSongname()
Returns the song name of the MP3 file.

Returns:
The song name.

getPlaylistname

java.lang.String getPlaylistname()
Returns the playlist name of the MP3 file.

Returns:
The playlist name.

getBandname

java.lang.String getBandname()
Returns the band name of the MP3 file.

Returns:
The band name.

getKeyword

java.lang.String getKeyword()
Returns the genre keyword.

Returns:
The genre keyword.

getPlaylistyear

int getPlaylistyear()
Returns the year of release of the playlist.

Returns:
The year of release of the playlist.

getPlaylistrow

int getPlaylistrow()
Returns the sequence no. of the song in the playlist.

Returns:
The sequence no. of the song in the playlist.

getSonglength

int getSonglength()
Returns the song length in milliseconds.

Returns:
The song length in milliseconds.

getExtension

java.lang.String getExtension()
Returns the extension of the song (".mp3").

Returns:
Returns the extension of the song.

getFile

java.io.File getFile()
Returns the currently analyzed file.

Returns:
The file currently being analyzed


Copyright © 2010 A.J.V.. All Rights Reserved.