package org.farng.mp3.lyrics3; import java.io.RandomAccessFile; import org.farng.mp3.InvalidTagException; import org.farng.mp3.object.ObjectStringSizeTerminated; /** * Extended Track Title. The extended Album, Artist and Track are an extension to the fields in the ID3v1 tag - which * are limited to 30 chars. If these extended fields exist, make sure their first 30 chars are exactly the same as the * ones in the ID3v1 tag. If they are the same, display the extended field. If not, display the one from the ID tag. * These 'mismatched' extended fields, should be removed when saving the lyrics tag. When saving the extended fields, * make sure to copy the first 30 chars of each field to the ID3 tag matching fields. It is recommended NOT to save * extended fields at all, if they are not larger then 30 chars. * * @author Eric Farng * @version $Revision: 2374 $ */ public class FieldBodyETT extends AbstractLyrics3v2FieldBody { /** * Creates a new FieldBodyETT object. */ public FieldBodyETT() { super(); } /** * Creates a new FieldBodyETT object. */ public FieldBodyETT(final FieldBodyETT body) { super(body); } /** * Creates a new FieldBodyETT object. */ public FieldBodyETT(final String title) { setObject("Title", title); } /** * Creates a new FieldBodyETT object. */ public FieldBodyETT(final RandomAccessFile file) throws InvalidTagException, java.io.IOException { this.read(file); } public String getIdentifier() { return "ETT"; } public void setTitle(final String title) { setObject("Title", title); } public String getTitle() { return (String) getObject("Title"); } protected void setupObjectList() { appendToObjectList(new ObjectStringSizeTerminated("Title")); } }