public class FrameBodyPCNT extends AbstractID3v2FrameBody implements ID3v24FrameBody, ID3v23FrameBody
<Header for 'Play counter', ID: "PCNT"> | |
Counter | $xx xx xx xx (xx ...) |
For more details, please refer to the ID3 specifications:
Modifier and Type | Field and Description |
---|---|
private static int |
COUNTER_MINIMUM_FIELD_SIZE |
TYPE_BODY
objectList
logger
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
long |
getCounter() |
java.lang.String |
getIdentifier()
The ID3v2 frame identifier
|
void |
setCounter(long counter)
Set the play counter of 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, getUserFriendlyValue, isSubsetOf, iterator, setHeader, setObjectValue, setTextEncoding, toString
private static final int COUNTER_MINIMUM_FIELD_SIZE
public FrameBodyPCNT()
public FrameBodyPCNT(FrameBodyPCNT body)
public FrameBodyPCNT(long counter)
counter
- public FrameBodyPCNT(java.nio.ByteBuffer byteBuffer, int frameSize) throws InvalidTagException
byteBuffer
- frameSize
- InvalidTagException
- if unable to create framebody from bufferpublic long getCounter()
public void setCounter(long counter)
counter
- public java.lang.String getIdentifier()
getIdentifier
in class AbstractID3v2FrameBody
protected void setupObjectList()
AbstractTagFrameBody
setupObjectList
in class AbstractTagFrameBody
Copyright © 2005-2013 java.net. All Rights Reserved.