| 1 | package org.farng.mp3.id3; |
| 2 | |
| 3 | import org.farng.mp3.InvalidTagException; |
| 4 | import org.farng.mp3.object.ObjectNumberHashMap; |
| 5 | import org.farng.mp3.object.ObjectStringHashMap; |
| 6 | |
| 7 | import java.io.RandomAccessFile; |
| 8 | |
| 9 | /** |
| 10 | * The 'Language' frame should contain the languages of the text or<br> lyrics spoken or sung |
| 11 | * in the audio. The language is represented with<br> three characters according to ISO-639-2 [ISO-639-2]. |
| 12 | * If more than one<br> language is used in the text their language codes should follow<br> |
| 13 | * <p/> |
| 14 | * according to the amount of their usage, e.g. "eng" $00 "sve" $00.</p> |
| 15 | * |
| 16 | * @author Eric Farng |
| 17 | * @version $Revision: 1.4 $ |
| 18 | */ |
| 19 | public class FrameBodyTLAN extends AbstractFrameBodyTextInformation { |
| 20 | |
| 21 | /** |
| 22 | * Creates a new FrameBodyTLAN object. |
| 23 | */ |
| 24 | public FrameBodyTLAN() { |
| 25 | super(); |
| 26 | } |
| 27 | |
| 28 | /** |
| 29 | * Creates a new FrameBodyTLAN object. |
| 30 | */ |
| 31 | public FrameBodyTLAN(final FrameBodyTLAN body) { |
| 32 | super(body); |
| 33 | } |
| 34 | |
| 35 | /** |
| 36 | * Creates a new FrameBodyTLAN object. |
| 37 | */ |
| 38 | public FrameBodyTLAN(final byte textEncoding, final String text) { |
| 39 | super(textEncoding, text); |
| 40 | } |
| 41 | |
| 42 | /** |
| 43 | * Creates a new FrameBodyTLAN object. |
| 44 | */ |
| 45 | public FrameBodyTLAN(final RandomAccessFile file) throws java.io.IOException, InvalidTagException { |
| 46 | super(file); |
| 47 | } |
| 48 | |
| 49 | public String getIdentifier() { |
| 50 | return "TLAN"; |
| 51 | } |
| 52 | |
| 53 | protected void setupObjectList() { |
| 54 | appendToObjectList(new ObjectNumberHashMap("Text Encoding", 1)); |
| 55 | appendToObjectList(new ObjectStringHashMap("Language", 3)); |
| 56 | } |
| 57 | } |