1 | package org.farng.mp3.lyrics3; |
2 | |
3 | import org.farng.mp3.InvalidTagException; |
4 | import org.farng.mp3.object.ObjectStringSizeTerminated; |
5 | |
6 | import java.io.RandomAccessFile; |
7 | |
8 | /** |
9 | * Lyrics/Music Author name. |
10 | * |
11 | * @author Eric Farng |
12 | * @version $Revision: 1.4 $ |
13 | */ |
14 | public class FieldBodyAUT extends AbstractLyrics3v2FieldBody { |
15 | |
16 | /** |
17 | * Creates a new FieldBodyAUT object. |
18 | */ |
19 | public FieldBodyAUT() { |
20 | super(); |
21 | } |
22 | |
23 | /** |
24 | * Creates a new FieldBodyAUT object. |
25 | */ |
26 | public FieldBodyAUT(final FieldBodyAUT body) { |
27 | super(body); |
28 | } |
29 | |
30 | /** |
31 | * Creates a new FieldBodyAUT object. |
32 | */ |
33 | public FieldBodyAUT(final String author) { |
34 | setObject("Author", author); |
35 | } |
36 | |
37 | /** |
38 | * Creates a new FieldBodyAUT object. |
39 | */ |
40 | public FieldBodyAUT(final RandomAccessFile file) throws InvalidTagException, java.io.IOException { |
41 | this.read(file); |
42 | } |
43 | |
44 | public void setAuthor(final String author) { |
45 | setObject("Author", author); |
46 | } |
47 | |
48 | public String getAuthor() { |
49 | return (String) getObject("Author"); |
50 | } |
51 | |
52 | public String getIdentifier() { |
53 | return "AUT"; |
54 | } |
55 | |
56 | protected void setupObjectList() { |
57 | appendToObjectList(new ObjectStringSizeTerminated("Author")); |
58 | } |
59 | } |