bbc.rd.id3
Class CTOCFrame

java.lang.Object
  extended bybbc.rd.id3.ChapterFrame
      extended bybbc.rd.id3.CTOCFrame
All Implemented Interfaces:
de.vdheide.mp3.ID3v2Frame

public class CTOCFrame
extends ChapterFrame

Class representing an ID3v2 "CTOC" frame.

Author:
Chris Newell, BBC R&D.

Field Summary
 boolean isOrdered
           
 boolean isTopLevel
           
 
Fields inherited from interface de.vdheide.mp3.ID3v2Frame
ID_INVALID
 
Constructor Summary
CTOCFrame(de.vdheide.mp3.ID3v2Frame frame)
           
CTOCFrame(java.lang.String elementId, boolean isTopLevel, boolean isOrdered)
           
 
Method Summary
 void addEntry(java.lang.String elementId)
           
 byte[] getContent()
           
 int getContentLength()
           
 java.lang.String getEntry(int index)
           
 int getLength()
           
 int getNumEntries()
           
 boolean isOrdered()
           
 boolean isTopLevel()
           
 void setTopLevel(boolean isTopLevel)
           
 java.lang.String toString()
           
 
Methods inherited from class bbc.rd.id3.ChapterFrame
addSubFrame, getBytes, getElementId, getID, getNumSubFrames, getSubFrame, getSubFrames, setID
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

isTopLevel

public boolean isTopLevel

isOrdered

public boolean isOrdered
Constructor Detail

CTOCFrame

public CTOCFrame(java.lang.String elementId,
                 boolean isTopLevel,
                 boolean isOrdered)

CTOCFrame

public CTOCFrame(de.vdheide.mp3.ID3v2Frame frame)
Method Detail

getContentLength

public int getContentLength()

getLength

public int getLength()

getContent

public byte[] getContent()

addEntry

public void addEntry(java.lang.String elementId)

getEntry

public java.lang.String getEntry(int index)

getNumEntries

public int getNumEntries()

isTopLevel

public boolean isTopLevel()
Returns:
Returns the isTopLevel.

setTopLevel

public void setTopLevel(boolean isTopLevel)
Parameters:
isTopLevel -

isOrdered

public boolean isOrdered()
Returns:
Returns the isOrdered.

toString

public java.lang.String toString()
Overrides:
toString in class ChapterFrame


BBC 2005. All rights reserved.