bbc.rd.id3
Class CHAPFrame

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

public class CHAPFrame
extends ChapterFrame

Class representing an ID3v2 "CHAP" frame.

Author:
Chris Newell, BBC R&D.

Field Summary
 
Fields inherited from interface de.vdheide.mp3.ID3v2Frame
ID_INVALID
 
Constructor Summary
CHAPFrame(de.vdheide.mp3.ID3v2Frame frame)
          Construct a CHAPFrame from an ID3Frame.
CHAPFrame(java.lang.String elementId)
          Constructor
CHAPFrame(java.lang.String elementId, long startTime, long endTime, long startByteOffset, long endByteOffset)
          Constructor.
 
Method Summary
 byte[] getContent()
           
 int getContentLength()
           
 long getEndByteOffset()
           
 long getEndTime()
           
 int getLength()
           
 long getStartByteOffset()
           
 long getStartTime()
           
 void setEndByteOffset(long endByteOffset)
           
 void setEndTime(long endTime)
           
 void setStartByteOffset(long startByteOffset)
           
 void setStartTime(long startTime)
           
 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
 

Constructor Detail

CHAPFrame

public CHAPFrame(java.lang.String elementId)
Constructor

Parameters:
elementId -

CHAPFrame

public CHAPFrame(java.lang.String elementId,
                 long startTime,
                 long endTime,
                 long startByteOffset,
                 long endByteOffset)
Constructor.

Parameters:
elementId -
startTime - the startTime in milliseconds
endTime - the endTime in milliseconds
startByteOffset -
endByteOffset -

CHAPFrame

public CHAPFrame(de.vdheide.mp3.ID3v2Frame frame)
Construct a CHAPFrame from an ID3Frame.

Method Detail

getContentLength

public int getContentLength()

getLength

public int getLength()

getContent

public byte[] getContent()

toString

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

setStartTime

public void setStartTime(long startTime)
Parameters:
startTime - the start time in milliseconds.

getStartTime

public long getStartTime()
Returns:
Returns the start time in milliseconds.

setEndTime

public void setEndTime(long endTime)
Parameters:
endTime - the end time in milliseconds.

getEndTime

public long getEndTime()
Returns:
Returns the end time in milliseconds.

setStartByteOffset

public void setStartByteOffset(long startByteOffset)
Parameters:
startByteOffset - The startByteOffset to set.

getStartByteOffset

public long getStartByteOffset()
Returns:
Returns the startByteOffset.

setEndByteOffset

public void setEndByteOffset(long endByteOffset)
Parameters:
endByteOffset - The endByteOffset to set.

getEndByteOffset

public long getEndByteOffset()
Returns:
Returns the endByteOffset.


© BBC 2005. All rights reserved.