|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tffenterprises.music.tag.ID3Genres
public abstract class ID3Genres
ID3Genres is an utility class that provides a two-way mapping between ID3v1 genres and their IDs. The same mapping is also useful for ID3v2.
Field Summary | |
---|---|
private static java.util.Hashtable |
GENRE_INDICES
The converse of the GENRE_STRINGS array, as a Hashtable to make searches quick. |
private static java.lang.String |
GENRE_NONE
A recommended string that means "no genre" |
private static java.lang.String[] |
GENRE_STRINGS
The significance of the genre byte values, as strings. |
private static java.lang.String[] |
SORTED_GENRE_STRINGS
A sorted array containing the genre strings. |
Constructor Summary | |
---|---|
ID3Genres()
|
Method Summary | |
---|---|
static java.lang.String |
ByteToString(byte genre)
Translate from the Genre byte to the Genre string. |
static java.util.Enumeration |
Enumerate()
Obtain an enumerator for the list of Genres. |
static java.lang.String[] |
getSortedGenres()
Returns a sorted array of genre strings. |
static byte |
StringToByte(java.lang.String genre)
Translate from the Genre string to the Genre byte. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final java.lang.String GENRE_NONE
private static java.lang.String[] GENRE_STRINGS
private static java.util.Hashtable GENRE_INDICES
private static java.lang.String[] SORTED_GENRE_STRINGS
Constructor Detail |
---|
public ID3Genres()
Method Detail |
---|
public static java.lang.String ByteToString(byte genre)
genre
- the byte value of a genre.
public static byte StringToByte(java.lang.String genre)
genre
- the name of the genre as string.
public static java.util.Enumeration Enumerate()
public static java.lang.String[] getSortedGenres()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |