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

COVERAGE SUMMARY FOR SOURCE FILE [FrameBodyTXXX.java]

nameclass, %method, %block, %line, %
FrameBodyTXXX.java0%   (0/1)0%   (0/11)0%   (0/84)0%   (0/24)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class FrameBodyTXXX0%   (0/1)0%   (0/11)0%   (0/84)0%   (0/24)
FrameBodyTXXX (): void 0%   (0/1)0%   (0/3)0%   (0/2)
FrameBodyTXXX (FrameBodyTXXX): void 0%   (0/1)0%   (0/4)0%   (0/2)
FrameBodyTXXX (RandomAccessFile): void 0%   (0/1)0%   (0/6)0%   (0/3)
FrameBodyTXXX (byte, String, String): void 0%   (0/1)0%   (0/18)0%   (0/5)
getBriefDescription (): String 0%   (0/1)0%   (0/3)0%   (0/1)
getDescription (): String 0%   (0/1)0%   (0/5)0%   (0/1)
getIdentifier (): String 0%   (0/1)0%   (0/10)0%   (0/1)
getText (): String 0%   (0/1)0%   (0/5)0%   (0/1)
setDescription (String): void 0%   (0/1)0%   (0/5)0%   (0/2)
setText (String): void 0%   (0/1)0%   (0/5)0%   (0/2)
setupObjectList (): void 0%   (0/1)0%   (0/20)0%   (0/4)

1package org.farng.mp3.id3;
2 
3import org.farng.mp3.InvalidTagException;
4import org.farng.mp3.object.ObjectNumberHashMap;
5import org.farng.mp3.object.ObjectStringNullTerminated;
6import org.farng.mp3.object.ObjectStringSizeTerminated;
7 
8import java.io.IOException;
9import java.io.RandomAccessFile;
10 
11/**
12 * <p>&nbsp;&nbsp; This frame is intended for one-string text information concerning the<br> &nbsp;&nbsp; audio file in
13 * a similar way to the other &quot;T&quot;-frames. The frame body<br> &nbsp;&nbsp; consists of a description of the
14 * string, represented as a terminated<br> &nbsp;&nbsp; string, followed by the actual string. There may be more than
15 * one<br>
16 * <p/>
17 * &nbsp;&nbsp; &quot;TXXX&quot; frame in each tag, but only one with the same description.</p>
18 * <p/>
19 * <p>&nbsp;&nbsp;&nbsp;&nbsp; &lt;Header for 'User defined text information frame', ID: &quot;TXXX&quot;&gt;<br>
20 * &nbsp;&nbsp;&nbsp;&nbsp; Text encoding&nbsp;&nbsp;&nbsp;&nbsp; $xx<br>
21 * <p/>
22 * &nbsp;&nbsp;&nbsp;&nbsp; Description&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;text string according to encoding&gt;
23 * $00 (00)<br> &nbsp;&nbsp;&nbsp;&nbsp; Value&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
24 * &lt;text string according to encoding&gt;<br>
25 * <p/>
26 * </p>
27 *
28 * @author Eric Farng
29 * @version $Revision: 1.4 $
30 */
31public class FrameBodyTXXX extends AbstractID3v2FrameBody {
32 
33    /**
34     * Creates a new FrameBodyTXXX object.
35     */
36    public FrameBodyTXXX() {
37        super();
38    }
39 
40    /**
41     * Creates a new FrameBodyTXXX object.
42     */
43    public FrameBodyTXXX(final FrameBodyTXXX body) {
44        super(body);
45    }
46 
47    /**
48     * Creates a new FrameBodyTXXX object.
49     */
50    public FrameBodyTXXX(final byte textEncoding, final String description, final String text) {
51        setObject("Text Encoding", new Byte(textEncoding));
52        setObject("Description", description);
53        setObject("Text", text);
54    }
55 
56    /**
57     * Creates a new FrameBodyTXXX object.
58     */
59    public FrameBodyTXXX(final RandomAccessFile file) throws IOException, InvalidTagException {
60        this.read(file);
61    }
62 
63    public String getBriefDescription() {
64        return this.getText();
65    }
66 
67    public void setDescription(final String description) {
68        setObject("Description", description);
69    }
70 
71    public String getDescription() {
72        return (String) getObject("Description");
73    }
74 
75    public String getIdentifier() {
76        return "TXXX" + ((char) 0) + getDescription();
77    }
78 
79    public void setText(final String text) {
80        setObject("Text", text);
81    }
82 
83    public String getText() {
84        return (String) getObject("Text");
85    }
86 
87    protected void setupObjectList() {
88        appendToObjectList(new ObjectNumberHashMap("Text Encoding", 1));
89        appendToObjectList(new ObjectStringNullTerminated("Description"));
90        appendToObjectList(new ObjectStringSizeTerminated("Text"));
91    }
92}

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