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

COVERAGE SUMMARY FOR SOURCE FILE [AbstractFrameBodyTextInformation.java]

nameclass, %method, %block, %line, %
AbstractFrameBodyTextInformation.java100% (1/1)80%  (8/10)87%  (59/68)90%  (19/21)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class AbstractFrameBodyTextInformation100% (1/1)80%  (8/10)87%  (59/68)90%  (19/21)
getBriefDescription (): String 0%   (0/1)0%   (0/3)0%   (0/1)
getTextEncoding (): byte 0%   (0/1)0%   (0/6)0%   (0/1)
AbstractFrameBodyTextInformation (): void 100% (1/1)100% (3/3)100% (2/2)
AbstractFrameBodyTextInformation (AbstractFrameBodyTextInformation): void 100% (1/1)100% (4/4)100% (2/2)
AbstractFrameBodyTextInformation (RandomAccessFile): void 100% (1/1)100% (6/6)100% (3/3)
AbstractFrameBodyTextInformation (byte, String): void 100% (1/1)100% (14/14)100% (4/4)
getText (): String 100% (1/1)100% (5/5)100% (1/1)
setText (String): void 100% (1/1)100% (5/5)100% (2/2)
setTextEncoding (byte): void 100% (1/1)100% (8/8)100% (2/2)
setupObjectList (): void 100% (1/1)100% (14/14)100% (3/3)

1package org.farng.mp3.id3;
2 
3import org.farng.mp3.InvalidTagException;
4import org.farng.mp3.object.ObjectNumberHashMap;
5import org.farng.mp3.object.ObjectStringSizeTerminated;
6 
7import java.io.IOException;
8import java.io.RandomAccessFile;
9 
10/**
11 * All frames starting with "T" are the same structurally and subclass from here
12 *
13 * @author Eric Farng
14 * @version $Revision: 1.4 $
15 */
16public abstract class AbstractFrameBodyTextInformation extends AbstractID3v2FrameBody {
17 
18    /**
19     * Creates a new FrameBodyTextInformation object.
20     */
21    protected AbstractFrameBodyTextInformation() {
22        super();
23    }
24 
25    /**
26     * Creates a new AbstractFrameBodyTextInformation object.
27     */
28    protected AbstractFrameBodyTextInformation(final AbstractFrameBodyTextInformation body) {
29        super(body);
30    }
31 
32    /**
33     * Creates a new FrameBodyTextInformation object.
34     */
35    protected AbstractFrameBodyTextInformation(final byte textEncoding, final String text) {
36        super();
37        setObject("Text Encoding", new Byte(textEncoding));
38        setObject("Text", text);
39    }
40 
41    /**
42     * Creates a new FrameBodyTextInformation object.
43     */
44    protected AbstractFrameBodyTextInformation(final RandomAccessFile file) throws IOException, InvalidTagException {
45        super();
46        read(file);
47    }
48 
49    public String getBriefDescription() {
50        return getText();
51    }
52 
53    public void setText(final String text) {
54        setObject("Text", text);
55    }
56 
57    public String getText() {
58        return (String) getObject("Text");
59    }
60 
61    public void setTextEncoding(final byte textEncoding) {
62        setObject("Text Encoding", new Byte(textEncoding));
63    }
64 
65    public byte getTextEncoding() {
66        return ((Byte) getObject("Text Encoding")).byteValue();
67    }
68 
69    protected void setupObjectList() {
70        appendToObjectList(new ObjectNumberHashMap("Text Encoding", 1));
71        appendToObjectList(new ObjectStringSizeTerminated("Text"));
72    }
73}

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