| 1 | package org.farng.mp3.id3; |
| 2 | |
| 3 | import org.farng.mp3.InvalidTagException; |
| 4 | |
| 5 | import java.io.RandomAccessFile; |
| 6 | |
| 7 | /** |
| 8 | * The 'Initial key' frame contains the musical key in which the sound<br> starts. It is |
| 9 | * represented as a string with a maximum length of three<br> |
| 10 | * <p/> |
| 11 | * characters. The ground keys are represented with "A","B","C","D","E", |
| 12 | * <br> "F" and "G" and halfkeys represented with "b" and "#". |
| 13 | * Minor is<br> |
| 14 | * <p/> |
| 15 | * represented as "m", e.g. "Dbm" $00. Off key is represented with an<br> |
| 16 | * "o" only.</p> |
| 17 | * |
| 18 | * @author Eric Farng |
| 19 | * @version $Revision: 1.4 $ |
| 20 | */ |
| 21 | public class FrameBodyTKEY extends AbstractFrameBodyTextInformation { |
| 22 | |
| 23 | /** |
| 24 | * Creates a new FrameBodyTKEY object. |
| 25 | */ |
| 26 | public FrameBodyTKEY() { |
| 27 | super(); |
| 28 | } |
| 29 | |
| 30 | /** |
| 31 | * Creates a new FrameBodyTKEY object. |
| 32 | */ |
| 33 | public FrameBodyTKEY(final FrameBodyTKEY body) { |
| 34 | super(body); |
| 35 | } |
| 36 | |
| 37 | /** |
| 38 | * Creates a new FrameBodyTKEY object. |
| 39 | */ |
| 40 | public FrameBodyTKEY(final byte textEncoding, final String text) { |
| 41 | super(textEncoding, text); |
| 42 | } |
| 43 | |
| 44 | /** |
| 45 | * Creates a new FrameBodyTKEY object. |
| 46 | */ |
| 47 | public FrameBodyTKEY(final RandomAccessFile file) throws java.io.IOException, InvalidTagException { |
| 48 | super(file); |
| 49 | } |
| 50 | |
| 51 | public String getIdentifier() { |
| 52 | return "TKEY"; |
| 53 | } |
| 54 | } |