|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpgbennett.id3.NullsoftID3GenreTable
public final class NullsoftID3GenreTable
This class keeps track of all the genre numbers and their corresponding
Strings based on the ID3 and Nullsoft standards.
| Constructor Summary | |
|---|---|
NullsoftID3GenreTable()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
getGenre(int i)
Return the corresponding String for the integer coded provided. |
static int |
getGenre(java.lang.String str)
Tries to find the string provided in the table and returns the corresponding int code if successful. |
static java.lang.String[] |
getGenres()
Returns an array of all the genres which can be used to put into an OptionPane or some other component for easy display. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NullsoftID3GenreTable()
| Method Detail |
|---|
public static java.lang.String getGenre(int i)
i - the genre code
public static int getGenre(java.lang.String str)
str - the genre to search for
public static java.lang.String[] getGenres()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||