|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jaudiotagger.tag.id3.AbstractTagItem
org.jaudiotagger.tag.id3.AbstractTagFrameBody
org.jaudiotagger.tag.id3.framebody.AbstractID3v2FrameBody
org.jaudiotagger.tag.id3.framebody.FrameBodyPCNT
public class FrameBodyPCNT
Play counter frame.
This is simply a counter of the number of times a file has been played. The value is increased by one every time the file begins to play. There may only be one "PCNT" frame in each tag. When the counter reaches all one's, one byte is inserted in front of the counter thus making the counter eight bits bigger. The counter must be at least 32-bits long to begin with.
<Header for 'Play counter', ID: "PCNT"> | |
Counter | $xx xx xx xx (xx ...) |
For more details, please refer to the ID3 specifications:
Field Summary |
---|
Fields inherited from class org.jaudiotagger.tag.id3.AbstractTagItem |
---|
logger |
Constructor Summary | |
---|---|
FrameBodyPCNT()
Creates a new FrameBodyPCNT datatype. |
|
FrameBodyPCNT(java.nio.ByteBuffer byteBuffer,
int frameSize)
Creates a new FrameBodyPCNT datatype. |
|
FrameBodyPCNT(FrameBodyPCNT body)
|
|
FrameBodyPCNT(long counter)
Creates a new FrameBodyPCNT datatype. |
Method Summary | |
---|---|
long |
getCounter()
|
java.lang.String |
getIdentifier()
The ID3v2 frame identifier |
void |
setCounter(long counter)
Set the play counter of this file |
Methods inherited from class org.jaudiotagger.tag.id3.framebody.AbstractID3v2FrameBody |
---|
createStructure, equals, getSize, read, setSize, setSize, write |
Methods inherited from class org.jaudiotagger.tag.id3.AbstractTagFrameBody |
---|
getBriefDescription, getHeader, getLongDescription, getObject, getObjectValue, getTextEncoding, isSubsetOf, iterator, setHeader, setObjectValue, setTextEncoding, toString |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FrameBodyPCNT()
public FrameBodyPCNT(FrameBodyPCNT body)
public FrameBodyPCNT(long counter)
counter
- public FrameBodyPCNT(java.nio.ByteBuffer byteBuffer, int frameSize) throws InvalidTagException
InvalidTagException
- if unable to create framebody from bufferMethod Detail |
---|
public long getCounter()
public void setCounter(long counter)
counter
- public java.lang.String getIdentifier()
getIdentifier
in class AbstractID3v2FrameBody
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |