Package com.mpatric.mp3agic
Class ID3v2ChapterFrameData
java.lang.Object
com.mpatric.mp3agic.AbstractID3v2FrameData
com.mpatric.mp3agic.ID3v2ChapterFrameData
public class ID3v2ChapterFrameData extends AbstractID3v2FrameData
-
Field Summary
Fields Modifier and Type Field Description protected int
endOffset
protected int
endTime
protected String
id
protected int
startOffset
protected int
startTime
protected ArrayList<ID3v2Frame>
subframes
-
Constructor Summary
Constructors Constructor Description ID3v2ChapterFrameData(boolean unsynchronisation)
ID3v2ChapterFrameData(boolean unsynchronisation, byte[] bytes)
ID3v2ChapterFrameData(boolean unsynchronisation, String id, int startTime, int endTime, int startOffset, int endOffset)
-
Method Summary
Modifier and Type Method Description void
addSubframe(String id, AbstractID3v2FrameData frame)
boolean
equals(Object obj)
int
getEndOffset()
int
getEndTime()
String
getId()
protected int
getLength()
int
getStartOffset()
int
getStartTime()
ArrayList<ID3v2Frame>
getSubframes()
int
hashCode()
protected byte[]
packFrameData()
void
setEndOffset(int endOffset)
void
setEndTime(int endTime)
void
setId(String id)
void
setStartOffset(int startOffset)
void
setStartTime(int startTime)
void
setSubframes(ArrayList<ID3v2Frame> subframes)
String
toString()
protected void
unpackFrameData(byte[] bytes)
Methods inherited from class com.mpatric.mp3agic.AbstractID3v2FrameData
packAndUnsynchroniseFrameData, synchroniseAndUnpackFrameData, toBytes
-
Field Details
-
Constructor Details
-
ID3v2ChapterFrameData
public ID3v2ChapterFrameData(boolean unsynchronisation) -
ID3v2ChapterFrameData
public ID3v2ChapterFrameData(boolean unsynchronisation, String id, int startTime, int endTime, int startOffset, int endOffset) -
ID3v2ChapterFrameData
- Throws:
InvalidDataException
-
-
Method Details
-
unpackFrameData
- Specified by:
unpackFrameData
in classAbstractID3v2FrameData
- Throws:
InvalidDataException
-
addSubframe
-
packFrameData
protected byte[] packFrameData()- Specified by:
packFrameData
in classAbstractID3v2FrameData
-
getId
-
setId
-
getStartTime
public int getStartTime() -
setStartTime
public void setStartTime(int startTime) -
getEndTime
public int getEndTime() -
setEndTime
public void setEndTime(int endTime) -
getStartOffset
public int getStartOffset() -
setStartOffset
public void setStartOffset(int startOffset) -
getEndOffset
public int getEndOffset() -
setEndOffset
public void setEndOffset(int endOffset) -
getSubframes
-
setSubframes
-
getLength
protected int getLength()- Specified by:
getLength
in classAbstractID3v2FrameData
-
toString
-
hashCode
public int hashCode()- Overrides:
hashCode
in classAbstractID3v2FrameData
-
equals
- Overrides:
equals
in classAbstractID3v2FrameData
-