org.farng.mp3.lyrics3
Class FieldBodyEAR

java.lang.Object
  extended byorg.farng.mp3.AbstractMP3FileItem
      extended byorg.farng.mp3.AbstractMP3FragmentBody
          extended byorg.farng.mp3.lyrics3.AbstractLyrics3v2FieldBody
              extended byorg.farng.mp3.lyrics3.FieldBodyEAR

public class FieldBodyEAR
extends AbstractLyrics3v2FieldBody

Extended Artist name. 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.

Version:
$Revision: 1.4 $
Author:
Eric Farng

Constructor Summary
FieldBodyEAR()
          Creates a new FieldBodyEAR object.
FieldBodyEAR(FieldBodyEAR body)
          Creates a new FieldBodyEAR object.
FieldBodyEAR(java.io.RandomAccessFile file)
          Creates a new FieldBodyEAR object.
FieldBodyEAR(java.lang.String artist)
          Creates a new FieldBodyEAR object.
 
Method Summary
 java.lang.String getArtist()
           
 java.lang.String getIdentifier()
          ID string that usually corresponds to the class name, but can be displayed to the user.
 void setArtist(java.lang.String artist)
           
protected  void setupObjectList()
          Create the order of MP3Object objects that this body expects.
 
Methods inherited from class org.farng.mp3.lyrics3.AbstractLyrics3v2FieldBody
readHeader, writeHeader
 
Methods inherited from class org.farng.mp3.AbstractMP3FragmentBody
appendToObjectList, equals, getBriefDescription, getDescription, getObject, getObjectListIterator, getSize, has6ByteHeader, isSubsetOf, iterator, read, setObject, toString, write
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FieldBodyEAR

public FieldBodyEAR()
Creates a new FieldBodyEAR object.


FieldBodyEAR

public FieldBodyEAR(FieldBodyEAR body)
Creates a new FieldBodyEAR object.


FieldBodyEAR

public FieldBodyEAR(java.lang.String artist)
Creates a new FieldBodyEAR object.


FieldBodyEAR

public FieldBodyEAR(java.io.RandomAccessFile file)
             throws InvalidTagException,
                    java.io.IOException
Creates a new FieldBodyEAR object.

Method Detail

setArtist

public void setArtist(java.lang.String artist)

getArtist

public java.lang.String getArtist()

getIdentifier

public java.lang.String getIdentifier()
Description copied from class: AbstractMP3FileItem
ID string that usually corresponds to the class name, but can be displayed to the user. It is not indended to identify each individual instance.

Specified by:
getIdentifier in class AbstractMP3FileItem
Returns:
ID string

setupObjectList

protected void setupObjectList()
Description copied from class: AbstractMP3FragmentBody
Create the order of MP3Object objects that this body expects. This method needs to be overwritten.

Specified by:
setupObjectList in class AbstractMP3FragmentBody


Copyright (c) 2004 Eric Farng