org.farng.mp3.lyrics3
Class FieldBodyIND

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

public class FieldBodyIND
extends AbstractLyrics3v2FieldBody

Indications field. This is always two characters big in v2.00, but might be bigger in a future standard. The first byte indicates wether or not a lyrics field is present. "1" for present and "0" for otherwise. The second character indicates if there is a timestamp in the lyrics. Again "1" for yes and "0" for no.

Version:
$Revision: 1.4 $
Author:
Eric Farng

Constructor Summary
FieldBodyIND()
          Creates a new FieldBodyIND object.
FieldBodyIND(boolean lyricsPresent, boolean timeStampPresent)
          Creates a new FieldBodyIND object.
FieldBodyIND(FieldBodyIND body)
          Creates a new FieldBodyIND object.
FieldBodyIND(java.io.RandomAccessFile file)
          Creates a new FieldBodyIND object.
 
Method Summary
 java.lang.String getAuthor()
           
 java.lang.String getIdentifier()
          ID string that usually corresponds to the class name, but can be displayed to the user.
 void setAuthor(java.lang.String author)
           
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

FieldBodyIND

public FieldBodyIND()
Creates a new FieldBodyIND object.


FieldBodyIND

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


FieldBodyIND

public FieldBodyIND(boolean lyricsPresent,
                    boolean timeStampPresent)
Creates a new FieldBodyIND object.


FieldBodyIND

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

Method Detail

setAuthor

public void setAuthor(java.lang.String author)

getAuthor

public java.lang.String getAuthor()

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