All Packages Class Hierarchy This Package Previous Next Index
Class joeshmoe.mpeg.GenreLookup
joeshmoe.mpeg.GenreLookup
- public class GenreLookup
This class provides a simple lookup interface to translate the genre
field of an ID3 tag into a text string. Reverse lookups can also
be performed.
-
GenreLookup()
-
-
getGenreByID(int)
- Finds the corresponding ID3 genre for the index number provided in pID
Returns null if the pID given is out of bounds (pID < 0 or pID > 127).
-
getIDByGenre(String)
- Finds the correponding ID3 genre index number for the given genre name.
GenreLookup
public GenreLookup()
getGenreByID
public static String getGenreByID(int pID)
- Finds the corresponding ID3 genre for the index number provided in pID
Returns null if the pID given is out of bounds (pID < 0 or pID > 127).
getIDByGenre
public static int getIDByGenre(String pGenre)
- Finds the correponding ID3 genre index number for the given genre name.
Returns null if the genre name provided cannot be found.
This function will take longer to return the first time it is run
as a Hashtable needs to be initialized.
All Packages Class Hierarchy This Package Previous Next Index