package org.farng.mp3.id3; import java.io.RandomAccessFile; import org.farng.mp3.InvalidTagException; import org.farng.mp3.object.ObjectNumberHashMap; import org.farng.mp3.object.ObjectStringDateTime; /** *    The 'Release time' frame contains a timestamp describing when the<br> * <p/> *    audio was first released. Timestamp format is described in the ID3v2<br>    structure document * [ID3v2-strct].</p> * * @author Eric Farng * @version $Revision: 2374 $ */ public class FrameBodyTDRL extends AbstractFrameBodyTextInformation { /** * Creates a new FrameBodyTDRL object. */ public FrameBodyTDRL() { super(); } /** * Creates a new FrameBodyTDRL object. */ public FrameBodyTDRL(final FrameBodyTDRL body) { super(body); } /** * Creates a new FrameBodyTDRL object. */ public FrameBodyTDRL(final byte textEncoding, final String text) { setObject(ObjectNumberHashMap.TEXT_ENCODING, new Byte(textEncoding)); setObject("Date Time", text); } /** * Creates a new FrameBodyTDRL object. */ public FrameBodyTDRL(final RandomAccessFile file) throws java.io.IOException, InvalidTagException { super(file); } public String getIdentifier() { return "TDRL"; } public void setText(final String text) { setObject("Date Time", text); } public String getText() { return (String) getObject("Date Time"); } protected void setupObjectList() { appendToObjectList(new ObjectNumberHashMap(ObjectNumberHashMap.TEXT_ENCODING, 1)); appendToObjectList(new ObjectStringDateTime("Date Time")); } }