org.farng.mp3.id3
Class FrameBodyMCDI

java.lang.Object
  extended by org.farng.mp3.AbstractMP3FileItem
      extended by org.farng.mp3.AbstractMP3FragmentBody
          extended by org.farng.mp3.id3.AbstractID3v2FrameBody
              extended by org.farng.mp3.id3.FrameBodyMCDI
All Implemented Interfaces:
MP3MetadataContainer

public class FrameBodyMCDI
extends AbstractID3v2FrameBody

4.4.   Music CD identifier

   This frame is intended for music that comes from a CD, so that the CD

   can be identified in databases such as the CDDB [CDDB]. The frame
   consists of a binary dump of the Table Of Contents, TOC, from the CD,
   which is a header of 4 bytes and then 8 bytes/track on the CD plus 8
   bytes for the 'lead out', making a maximum of 804 bytes. The offset
   to the beginning of every track on the CD should be described with a

   four bytes absolute CD-frame address per track, and not with absolute
   time. When this frame is used the presence of a valid "TRCK" frame is
   REQUIRED, even if the CD's only got one track. It is recommended that
   this frame is always added to tags originating from CDs. There may

   only be one "MCDI" frame in each tag.

     <Header for 'Music CD identifier', ID: "MCDI">
     CD TOC                <binary data>

Version:
$Revision: 3 $
Author:
Eric Farng

Constructor Summary
FrameBodyMCDI()
          Creates a new FrameBodyMCDI object.
FrameBodyMCDI(byte[] cdTOC)
          Creates a new FrameBodyMCDI object.
FrameBodyMCDI(FrameBodyMCDI body)
          Creates a new FrameBodyMCDI object.
FrameBodyMCDI(java.io.RandomAccessFile file)
          Creates a new FrameBodyMCDI object.
 
Method Summary
 java.lang.String getIdentifier()
           
protected  void setupObjectList()
          Create the order of MP3Object objects that this body expects.
 
Methods inherited from class org.farng.mp3.id3.AbstractID3v2FrameBody
equals, readHeader, writeHeader
 
Methods inherited from class org.farng.mp3.AbstractMP3FragmentBody
appendToObjectList, 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

FrameBodyMCDI

public FrameBodyMCDI()
Creates a new FrameBodyMCDI object.


FrameBodyMCDI

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


FrameBodyMCDI

public FrameBodyMCDI(byte[] cdTOC)
Creates a new FrameBodyMCDI object.


FrameBodyMCDI

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

Throws:
java.io.IOException
InvalidTagException
Method Detail

getIdentifier

public java.lang.String getIdentifier()
Specified by:
getIdentifier in class AbstractMP3FileItem

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