|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.farng.mp3.AbstractMP3FileItem
org.farng.mp3.AbstractMP3FragmentBody
org.farng.mp3.id3.AbstractID3v2FrameBody
org.farng.mp3.id3.FrameBodyMCDI
public class FrameBodyMCDI
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>
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 |
---|
public FrameBodyMCDI()
public FrameBodyMCDI(FrameBodyMCDI body)
public FrameBodyMCDI(byte[] cdTOC)
public FrameBodyMCDI(java.io.RandomAccessFile file) throws java.io.IOException, InvalidTagException
java.io.IOException
InvalidTagException
Method Detail |
---|
public java.lang.String getIdentifier()
getIdentifier
in class AbstractMP3FileItem
protected void setupObjectList()
AbstractMP3FragmentBody
MP3Object
objects that this body expects. This method needs to be overwritten.
setupObjectList
in class AbstractMP3FragmentBody
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |