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

COVERAGE SUMMARY FOR SOURCE FILE [FrameBodyOWNE.java]

nameclass, %method, %block, %line, %
FrameBodyOWNE.java0%   (0/1)0%   (0/6)0%   (0/63)0%   (0/19)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class FrameBodyOWNE0%   (0/1)0%   (0/6)0%   (0/63)0%   (0/19)
FrameBodyOWNE (): void 0%   (0/1)0%   (0/3)0%   (0/2)
FrameBodyOWNE (FrameBodyOWNE): void 0%   (0/1)0%   (0/4)0%   (0/2)
FrameBodyOWNE (RandomAccessFile): void 0%   (0/1)0%   (0/6)0%   (0/3)
FrameBodyOWNE (byte, String, String, String): void 0%   (0/1)0%   (0/22)0%   (0/6)
getIdentifier (): String 0%   (0/1)0%   (0/2)0%   (0/1)
setupObjectList (): void 0%   (0/1)0%   (0/26)0%   (0/5)

1package org.farng.mp3.id3;
2 
3import org.farng.mp3.InvalidTagException;
4import org.farng.mp3.object.ObjectNumberHashMap;
5import org.farng.mp3.object.ObjectStringDate;
6import org.farng.mp3.object.ObjectStringNullTerminated;
7import org.farng.mp3.object.ObjectStringSizeTerminated;
8 
9import java.io.IOException;
10import java.io.RandomAccessFile;
11 
12/**
13 * <h3>4.23.&nbsp;&nbsp; Ownership frame</h3>
14 * <p/>
15 * <p>&nbsp;&nbsp; The ownership frame might be used as a reminder of a made transaction<br> &nbsp;&nbsp; or, if signed,
16 * as proof. Note that the &quot;USER&quot; and &quot;TOWN&quot; frames are<br> &nbsp;&nbsp; good to use in conjunction
17 * with this one. The frame begins, after the<br>
18 * <p/>
19 * &nbsp;&nbsp; frame ID, size and encoding fields, with a 'price paid' field. The<br> &nbsp;&nbsp; first three
20 * characters of this field contains the currency used for<br> &nbsp;&nbsp; the transaction, encoded according to ISO
21 * 4217 [ISO-4217] alphabetic<br> &nbsp;&nbsp; currency code. Concatenated to this is the actual price paid, as a<br>
22 * &nbsp;&nbsp; numerical string using &quot;.&quot; as the decimal separator. Next is an 8<br>
23 * <p/>
24 * &nbsp;&nbsp; character date string (YYYYMMDD) followed by a string with the name<br> &nbsp;&nbsp; of the seller as
25 * the last field in the frame. There may only be one<br> &nbsp;&nbsp; &quot;OWNE&quot; frame in a tag.</p>
26 * <p/>
27 * <p>&nbsp;&nbsp;&nbsp;&nbsp; &lt;Header for 'Ownership frame', ID: &quot;OWNE&quot;&gt;<br>
28 * <p/>
29 * &nbsp;&nbsp;&nbsp;&nbsp; Text encoding&nbsp;&nbsp;&nbsp;&nbsp; $xx<br> &nbsp;&nbsp;&nbsp;&nbsp; Price
30 * paid&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;text string&gt; $00<br> &nbsp;&nbsp;&nbsp;&nbsp; Date of
31 * purch.&nbsp;&nbsp;&nbsp; &lt;text string&gt;<br>
32 * <p/>
33 * &nbsp;&nbsp;&nbsp;&nbsp; Seller&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;text string
34 * according to encoding&gt;<br> </p>
35 *
36 * @author Eric Farng
37 * @version $Revision: 1.4 $
38 */
39public class FrameBodyOWNE extends AbstractID3v2FrameBody {
40 
41    /**
42     * Creates a new FrameBodyOWNE object.
43     */
44    public FrameBodyOWNE() {
45        super();
46    }
47 
48    /**
49     * Creates a new FrameBodyOWNE object.
50     */
51    public FrameBodyOWNE(final FrameBodyOWNE body) {
52        super(body);
53    }
54 
55    /**
56     * Creates a new FrameBodyOWNE object.
57     */
58    public FrameBodyOWNE(final byte textEncoding,
59                         final String pricePaid,
60                         final String dateOfPurchase,
61                         final String seller) {
62        setObject("Text Encoding", new Byte(textEncoding));
63        setObject("Price Paid", pricePaid);
64        setObject("Date Of Purchase", dateOfPurchase);
65        setObject("Seller", seller);
66    }
67 
68    /**
69     * Creates a new FrameBodyOWNE object.
70     */
71    public FrameBodyOWNE(final RandomAccessFile file) throws IOException, InvalidTagException {
72        this.read(file);
73    }
74 
75    public String getIdentifier() {
76        return "OWNE";
77    }
78 
79    protected void setupObjectList() {
80        appendToObjectList(new ObjectNumberHashMap(ObjectNumberHashMap.TEXT_ENCODING, 1));
81        appendToObjectList(new ObjectStringNullTerminated("Price Paid"));
82        appendToObjectList(new ObjectStringDate("Date Of Purchase"));
83        appendToObjectList(new ObjectStringSizeTerminated("Seller"));
84    }
85}

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