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

COVERAGE SUMMARY FOR SOURCE FILE [FrameBodyMCDI.java]

nameclass, %method, %block, %line, %
FrameBodyMCDI.java0%   (0/1)0%   (0/6)0%   (0/29)0%   (0/13)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class FrameBodyMCDI0%   (0/1)0%   (0/6)0%   (0/29)0%   (0/13)
FrameBodyMCDI (): void 0%   (0/1)0%   (0/3)0%   (0/2)
FrameBodyMCDI (FrameBodyMCDI): void 0%   (0/1)0%   (0/4)0%   (0/2)
FrameBodyMCDI (RandomAccessFile): void 0%   (0/1)0%   (0/6)0%   (0/3)
FrameBodyMCDI (byte []): void 0%   (0/1)0%   (0/7)0%   (0/3)
getIdentifier (): String 0%   (0/1)0%   (0/2)0%   (0/1)
setupObjectList (): void 0%   (0/1)0%   (0/7)0%   (0/2)

1package org.farng.mp3.id3;
2 
3import org.farng.mp3.InvalidTagException;
4import org.farng.mp3.object.ObjectByteArraySizeTerminated;
5 
6import java.io.IOException;
7import java.io.RandomAccessFile;
8 
9/**
10 * <h3>4.4.&nbsp;&nbsp; Music CD identifier</h3>
11 * <p/>
12 * <p>&nbsp;&nbsp; This frame is intended for music that comes from a CD, so that the CD<br>
13 * <p/>
14 * &nbsp;&nbsp; can be identified in databases such as the CDDB [CDDB]. The frame<br> &nbsp;&nbsp; consists of a binary
15 * dump of the Table Of Contents, TOC, from the CD,<br> &nbsp;&nbsp; which is a header of 4 bytes and then 8 bytes/track
16 * on the CD plus 8<br> &nbsp;&nbsp; bytes for the 'lead out', making a maximum of 804 bytes. The offset<br>
17 * &nbsp;&nbsp; to the beginning of every track on the CD should be described with a<br>
18 * <p/>
19 * &nbsp;&nbsp; four bytes absolute CD-frame address per track, and not with absolute<br> &nbsp;&nbsp; time. When this
20 * frame is used the presence of a valid &quot;TRCK&quot; frame is<br> &nbsp;&nbsp; REQUIRED, even if the CD's only got
21 * one track. It is recommended that<br> &nbsp;&nbsp; this frame is always added to tags originating from CDs. There
22 * may<br>
23 * <p/>
24 * &nbsp;&nbsp; only be one &quot;MCDI&quot; frame in each tag.</p>
25 * <p/>
26 * <p>&nbsp;&nbsp;&nbsp;&nbsp; &lt;Header for 'Music CD identifier', ID: &quot;MCDI&quot;&gt;<br>
27 * &nbsp;&nbsp;&nbsp;&nbsp; CD TOC&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
28 * &lt;binary data&gt;<br>
29 * <p/>
30 * </p>
31 *
32 * @author Eric Farng
33 * @version $Revision: 1.4 $
34 */
35public class FrameBodyMCDI extends AbstractID3v2FrameBody {
36 
37    /**
38     * Creates a new FrameBodyMCDI object.
39     */
40    public FrameBodyMCDI() {
41        super();
42    }
43 
44    /**
45     * Creates a new FrameBodyMCDI object.
46     */
47    public FrameBodyMCDI(final FrameBodyMCDI body) {
48        super(body);
49    }
50 
51    /**
52     * Creates a new FrameBodyMCDI object.
53     */
54    public FrameBodyMCDI(final byte[] cdTOC) {
55        setObject("CD Table of Contents", cdTOC);
56    }
57 
58    /**
59     * Creates a new FrameBodyMCDI object.
60     */
61    public FrameBodyMCDI(final RandomAccessFile file) throws IOException, InvalidTagException {
62        this.read(file);
63    }
64 
65    public String getIdentifier() {
66        return "MCDI";
67    }
68 
69    protected void setupObjectList() {
70        appendToObjectList(new ObjectByteArraySizeTerminated("CD Table of Contents"));
71    }
72}

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