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

COVERAGE SUMMARY FOR SOURCE FILE [FieldBodyEAR.java]

nameclass, %method, %block, %line, %
FieldBodyEAR.java100% (1/1)75%  (6/8)77%  (30/39)69%  (11/16)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class FieldBodyEAR100% (1/1)75%  (6/8)77%  (30/39)69%  (11/16)
FieldBodyEAR (): void 0%   (0/1)0%   (0/3)0%   (0/2)
FieldBodyEAR (RandomAccessFile): void 0%   (0/1)0%   (0/6)0%   (0/3)
FieldBodyEAR (FieldBodyEAR): void 100% (1/1)100% (4/4)100% (2/2)
FieldBodyEAR (String): void 100% (1/1)100% (7/7)100% (3/3)
getArtist (): String 100% (1/1)100% (5/5)100% (1/1)
getIdentifier (): String 100% (1/1)100% (2/2)100% (1/1)
setArtist (String): void 100% (1/1)100% (5/5)100% (2/2)
setupObjectList (): void 100% (1/1)100% (7/7)100% (2/2)

1package org.farng.mp3.lyrics3;
2 
3import org.farng.mp3.InvalidTagException;
4import org.farng.mp3.object.ObjectStringSizeTerminated;
5 
6import java.io.RandomAccessFile;
7 
8/**
9 * Extended Artist name. The extended Album, Artist and Track are an extension to the fields in the ID3v1 tag - which
10 * are limited to 30 chars. If these extended fields exist, make sure their first 30 chars are exactly the same as the
11 * ones in the ID3v1 tag. If they are the same, display the extended field. If not, display the one from the ID tag.
12 * These 'mismatched' extended fields, should be removed when saving the lyrics tag. When saving the extended fields,
13 * make sure to copy the first 30 chars of each field to the ID3 tag matching fields. It is recommended NOT to save
14 * extended fields at all, if they are not larger then 30 chars.
15 *
16 * @author Eric Farng
17 * @version $Revision: 1.4 $
18 */
19public class FieldBodyEAR extends AbstractLyrics3v2FieldBody {
20 
21    /**
22     * Creates a new FieldBodyEAR object.
23     */
24    public FieldBodyEAR() {
25        super();
26    }
27 
28    /**
29     * Creates a new FieldBodyEAR object.
30     */
31    public FieldBodyEAR(final FieldBodyEAR body) {
32        super(body);
33    }
34 
35    /**
36     * Creates a new FieldBodyEAR object.
37     */
38    public FieldBodyEAR(final String artist) {
39        setObject("Artist", artist);
40    }
41 
42    /**
43     * Creates a new FieldBodyEAR object.
44     */
45    public FieldBodyEAR(final RandomAccessFile file) throws InvalidTagException, java.io.IOException {
46        this.read(file);
47    }
48 
49    public void setArtist(final String artist) {
50        setObject("Artist", artist);
51    }
52 
53    public String getArtist() {
54        return (String) getObject("Artist");
55    }
56 
57    public String getIdentifier() {
58        return "EAR";
59    }
60 
61    protected void setupObjectList() {
62        appendToObjectList(new ObjectStringSizeTerminated("Artist"));
63    }
64}

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