public class FrameBodyPOPM extends AbstractID3v2FrameBody implements ID3v24FrameBody, ID3v23FrameBody
For more details, please refer to the ID3 specifications:
Modifier and Type | Field and Description |
---|---|
static String |
MEDIA_MONKEY_NO_EMAIL |
TYPE_BODY
objectList
logger
Constructor and Description |
---|
FrameBodyPOPM()
Creates a new FrameBodyPOPM datatype.
|
FrameBodyPOPM(ByteBuffer byteBuffer,
int frameSize)
Creates a new FrameBodyPOPM datatype.
|
FrameBodyPOPM(FrameBodyPOPM body) |
FrameBodyPOPM(String emailToUser,
long rating,
long counter)
Creates a new FrameBodyPOPM datatype.
|
Modifier and Type | Method and Description |
---|---|
long |
getCounter() |
String |
getEmailToUser() |
String |
getIdentifier()
The ID3v2 frame identifier
|
long |
getRating() |
String |
getUserFriendlyValue() |
void |
parseString(String data) |
void |
setCounter(long counter)
Set the play counter of this file
|
void |
setEmailToUser(String description) |
void |
setRating(long rating)
Set the rating given to this file
|
protected void |
setupObjectList()
Create the list of Datatypes that this body
expects in the correct order This method needs to be implemented by concrete subclasses
|
createStructure, equals, getSize, read, setSize, setSize, write
getBriefDescription, getHeader, getLongDescription, getObject, getObjectValue, getTextEncoding, isSubsetOf, iterator, setHeader, setObjectValue, setTextEncoding, toString
public static final String MEDIA_MONKEY_NO_EMAIL
public FrameBodyPOPM()
public FrameBodyPOPM(FrameBodyPOPM body)
public FrameBodyPOPM(String emailToUser, long rating, long counter)
emailToUser
- rating
- counter
- public FrameBodyPOPM(ByteBuffer byteBuffer, int frameSize) throws InvalidTagException
byteBuffer
- frameSize
- InvalidTagException
- if unable to create framebody from bufferpublic void setEmailToUser(String description)
description
- public String getEmailToUser()
public long getRating()
public void setRating(long rating)
rating
- public long getCounter()
public void setCounter(long counter)
counter
- public String getIdentifier()
getIdentifier
in class AbstractID3v2FrameBody
public String getUserFriendlyValue()
getUserFriendlyValue
in class AbstractTagFrameBody
public void parseString(String data)
protected void setupObjectList()
AbstractTagFrameBody
setupObjectList
in class AbstractTagFrameBody
Copyright © 2005–2020 jthink.net. All rights reserved.