|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.org.retep.util.io.MP3
public class MP3
This class reads in the TAG's contained within an MP3 audio files header. This could then be used to populate a database with your MP3 collection.
| Field Summary | |
|---|---|
static java.lang.String |
ALBUM
Tag name containing the album name |
static java.lang.String |
BIO
This is unique to MusicMatch. |
static java.lang.String |
GENRE
The Genre |
static java.lang.String |
LENGTH
The track length in bytes |
static java.lang.String |
LYRICS
The Lyrics for this track |
static java.lang.String |
MED
Tag name containing the source media |
static java.lang.String |
MOOD
This is unique to MusicMatch. |
static java.lang.String |
NOTES
This is unique to MusicMatch? Notes |
static java.lang.String |
SITUATION
This is unique to MusicMatch. |
static java.lang.String |
TEMPO
This is unique to MusicMatch. |
static java.lang.String |
TITLE
The title of this track |
static java.lang.String |
TRACK
The track number (ie 01-99 for tracks on a cd) |
static java.lang.String |
URL_ARTIST
The URL for the artist |
static java.lang.String |
URL_AUDIO
The URL for audio? |
static java.lang.String |
URL_BUYCD
The URL to buy the cd |
static java.lang.String |
YEAR
Tag name containing the year the track was produced |
| Constructor Summary | |
|---|---|
MP3()
Empty Constructor. |
|
MP3(java.io.File aFile)
Construct and read data in from a file |
|
MP3(java.io.RandomAccessFile raf)
Construct and read data in from a file |
|
| Method Summary | |
|---|---|
java.lang.String |
get(java.lang.String tag)
|
java.util.Iterator |
getTags()
Obtains an Iterator of tag names in the MP3 file. |
static void |
main(java.lang.String[] args)
A simple example application. |
void |
read(java.io.File aFile)
Read data in from a file |
void |
read(java.io.RandomAccessFile raf)
Read data in from a file |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String YEAR
public static final java.lang.String ALBUM
public static final java.lang.String MED
public static final java.lang.String TRACK
public static final java.lang.String LENGTH
public static final java.lang.String URL_ARTIST
public static final java.lang.String URL_BUYCD
public static final java.lang.String URL_AUDIO
public static final java.lang.String TITLE
public static final java.lang.String LYRICS
public static final java.lang.String GENRE
public static final java.lang.String SITUATION
public static final java.lang.String TEMPO
public static final java.lang.String NOTES
public static final java.lang.String MOOD
public static final java.lang.String BIO
| Constructor Detail |
|---|
public MP3()
public MP3(java.io.File aFile)
throws java.io.IOException
aFile - File pointing to an MP3 file
java.io.IOException
public MP3(java.io.RandomAccessFile raf)
throws java.io.IOException
raf - RandomAccessFile pointing to an MP3 file
java.io.IOException| Method Detail |
|---|
public java.lang.String get(java.lang.String tag)
tag - A tag name from within the MP3 file
public java.util.Iterator getTags()
public void read(java.io.File aFile)
throws java.io.IOException
aFile - File pointing to an MP3 file
java.io.IOException
public void read(java.io.RandomAccessFile raf)
throws java.io.IOException
raf - RandomAccessFile pointing to an MP3 file
java.io.IOException
public static void main(java.lang.String[] args)
throws java.lang.Exception
args -
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||