EMMA Coverage Report (generated Tue Mar 14 21:50:42 EST 2006)
[all classes][org.farng.mp3.id3]

COVERAGE SUMMARY FOR SOURCE FILE [FrameBodyPCNT.java]

nameclass, %method, %block, %line, %
FrameBodyPCNT.java0%   (0/1)0%   (0/6)0%   (0/33)0%   (0/13)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class FrameBodyPCNT0%   (0/1)0%   (0/6)0%   (0/33)0%   (0/13)
FrameBodyPCNT (): void 0%   (0/1)0%   (0/3)0%   (0/2)
FrameBodyPCNT (FrameBodyPCNT): void 0%   (0/1)0%   (0/4)0%   (0/2)
FrameBodyPCNT (RandomAccessFile): void 0%   (0/1)0%   (0/6)0%   (0/3)
FrameBodyPCNT (long): void 0%   (0/1)0%   (0/10)0%   (0/3)
getIdentifier (): String 0%   (0/1)0%   (0/2)0%   (0/1)
setupObjectList (): void 0%   (0/1)0%   (0/8)0%   (0/2)

1package org.farng.mp3.id3;
2 
3import org.farng.mp3.InvalidTagException;
4import org.farng.mp3.object.ObjectNumberVariableLength;
5 
6import java.io.IOException;
7import java.io.RandomAccessFile;
8 
9/**
10 * <h3>4.16.&nbsp;&nbsp; Play counter</h3>
11 * <p/>
12 * <p>&nbsp;&nbsp; This is simply a counter of the number of times a file has been<br>
13 * <p/>
14 * &nbsp;&nbsp; played. The value is increased by one every time the file begins to<br> &nbsp;&nbsp; play. There may
15 * only be one &quot;PCNT&quot; frame in each tag. When the<br> &nbsp;&nbsp; counter reaches all one's, one byte is
16 * inserted in front of the<br> &nbsp;&nbsp; counter thus making the counter eight bits bigger.&nbsp; The counter
17 * must<br>
18 * <p/>
19 * &nbsp;&nbsp; be at least 32-bits long to begin with.</p>
20 * <p/>
21 * <p>&nbsp;&nbsp;&nbsp;&nbsp; &lt;Header for 'Play counter', ID: &quot;PCNT&quot;&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;
22 * Counter&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $xx xx xx xx (xx ...)<br> </p>
23 *
24 * @author Eric Farng
25 * @version $Revision: 1.4 $
26 */
27public class FrameBodyPCNT extends AbstractID3v2FrameBody {
28 
29    /**
30     * Creates a new FrameBodyPCNT object.
31     */
32    public FrameBodyPCNT() {
33        super();
34    }
35 
36    /**
37     * Creates a new FrameBodyPCNT object.
38     */
39    public FrameBodyPCNT(final FrameBodyPCNT body) {
40        super(body);
41    }
42 
43    /**
44     * Creates a new FrameBodyPCNT object.
45     */
46    public FrameBodyPCNT(final long counter) {
47        setObject("Counter", new Long(counter));
48    }
49 
50    /**
51     * Creates a new FrameBodyPCNT object.
52     */
53    public FrameBodyPCNT(final RandomAccessFile file) throws IOException, InvalidTagException {
54        this.read(file);
55    }
56 
57    public String getIdentifier() {
58        return "PCNT";
59    }
60 
61    protected void setupObjectList() {
62        appendToObjectList(new ObjectNumberVariableLength("Counter", 4));
63    }
64}

[all classes][org.farng.mp3.id3]
EMMA 2.0.5312 (C) Vladimir Roubtsov