org.farng.mp3.id3
Class FrameBodyPCNT

java.lang.Object
  extended byorg.farng.mp3.AbstractMP3FileItem
      extended byorg.farng.mp3.AbstractMP3FragmentBody
          extended byorg.farng.mp3.id3.AbstractID3v2FrameBody
              extended byorg.farng.mp3.id3.FrameBodyPCNT

public class FrameBodyPCNT
extends AbstractID3v2FrameBody

4.16.   Play counter

   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 ...)

Version:
$Revision: 1.4 $
Author:
Eric Farng

Constructor Summary
FrameBodyPCNT()
          Creates a new FrameBodyPCNT object.
FrameBodyPCNT(FrameBodyPCNT body)
          Creates a new FrameBodyPCNT object.
FrameBodyPCNT(long counter)
          Creates a new FrameBodyPCNT object.
FrameBodyPCNT(java.io.RandomAccessFile file)
          Creates a new FrameBodyPCNT object.
 
Method Summary
 java.lang.String getIdentifier()
          ID string that usually corresponds to the class name, but can be displayed to the user.
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

FrameBodyPCNT

public FrameBodyPCNT()
Creates a new FrameBodyPCNT object.


FrameBodyPCNT

public FrameBodyPCNT(FrameBodyPCNT body)
Creates a new FrameBodyPCNT object.


FrameBodyPCNT

public FrameBodyPCNT(long counter)
Creates a new FrameBodyPCNT object.


FrameBodyPCNT

public FrameBodyPCNT(java.io.RandomAccessFile file)
              throws java.io.IOException,
                     InvalidTagException
Creates a new FrameBodyPCNT object.

Method Detail

getIdentifier

public java.lang.String getIdentifier()
Description copied from class: AbstractMP3FileItem
ID string that usually corresponds to the class name, but can be displayed to the user. It is not indended to identify each individual instance.

Specified by:
getIdentifier in class AbstractMP3FileItem
Returns:
ID string

setupObjectList

protected void setupObjectList()
Description copied from class: AbstractMP3FragmentBody
Create the order of MP3Object objects that this body expects. This method needs to be overwritten.

Specified by:
setupObjectList in class AbstractMP3FragmentBody


Copyright (c) 2004 Eric Farng