|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.farng.mp3.AbstractMP3FileItem
org.farng.mp3.AbstractMP3FragmentBody
org.farng.mp3.id3.AbstractID3v2FrameBody
org.farng.mp3.id3.FrameBodyPOPM
public class FrameBodyPOPM
The purpose of this frame is to specify how good an audio file is.
Many interesting
applications could be found to this frame such as a
playlist that features better audio files more
often than others or
it could be used to profile a person's taste and find other 'good'
files by comparing
people's profiles. The frame contains the email
address to the user, one rating byte and a four byte
play counter,
intended to be increased with one for every time the file is played.
The email is a terminated string. The rating is 1-255 where 1 is
worst and 255 is best. 0 is unknown. If no personal counter is wanted
it may be
omitted. When the counter reaches all one's, one byte is
inserted in front of the counter thus
making the counter eight bits
bigger in the same away as the play counter ("PCNT"). There
may be
more than one "POPM" frame in each tag, but only one with the same
email
address.
<Header for 'Popularimeter', ID: "POPM">
Email to user <text string> $00
Rating $xx
Counter $xx xx xx xx (xx ...)
Constructor Summary | |
---|---|
FrameBodyPOPM()
Creates a new FrameBodyPOPM object. |
|
FrameBodyPOPM(FrameBodyPOPM body)
Creates a new FrameBodyPOPM object. |
|
FrameBodyPOPM(java.io.RandomAccessFile file)
Creates a new FrameBodyPOPM object. |
|
FrameBodyPOPM(java.lang.String emailToUser,
byte rating,
long counter)
Creates a new FrameBodyPOPM object. |
Method Summary | |
---|---|
java.lang.String |
getEmailToUser()
|
java.lang.String |
getIdentifier()
|
void |
setEmailToUser(java.lang.String description)
|
protected void |
setupObjectList()
Create the order of MP3Object objects that this body expects. |
Methods inherited from class org.farng.mp3.id3.AbstractID3v2FrameBody |
---|
equals, readHeader, writeHeader |
Methods inherited from class org.farng.mp3.AbstractMP3FragmentBody |
---|
appendToObjectList, getBriefDescription, getDescription, getObject, getObjectListIterator, getSize, has6ByteHeader, isSubsetOf, iterator, read, setObject, toString, write |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FrameBodyPOPM()
public FrameBodyPOPM(FrameBodyPOPM body)
public FrameBodyPOPM(java.lang.String emailToUser, byte rating, long counter)
public FrameBodyPOPM(java.io.RandomAccessFile file) throws java.io.IOException, InvalidTagException
java.io.IOException
InvalidTagException
Method Detail |
---|
public void setEmailToUser(java.lang.String description)
public java.lang.String getEmailToUser()
public java.lang.String getIdentifier()
getIdentifier
in class AbstractMP3FileItem
protected void setupObjectList()
AbstractMP3FragmentBody
MP3Object
objects that this body expects. This method needs to be overwritten.
setupObjectList
in class AbstractMP3FragmentBody
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |