|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.farng.mp3.AbstractMP3FileItem org.farng.mp3.AbstractMP3FragmentBody org.farng.mp3.id3.AbstractID3v2FrameBody
public abstract class AbstractID3v2FrameBody
Each ID3v2 frame contains a header and then the payload. This is the super class for the payload
Constructor Summary | |
---|---|
protected |
AbstractID3v2FrameBody()
Creates a new AbstractID3v2FrameBody object. |
protected |
AbstractID3v2FrameBody(AbstractID3v2FrameBody copyObject)
Creates a new AbstractID3v2FrameBody object. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Returns true if this object and its entire MP3Object array list equals the argument. |
protected int |
readHeader(java.io.RandomAccessFile file)
Reads the header for the fragment body. |
protected void |
writeHeader(java.io.RandomAccessFile file,
int size)
Write the body header to the file at the current file position. |
Methods inherited from class org.farng.mp3.AbstractMP3FragmentBody |
---|
appendToObjectList, getBriefDescription, getDescription, getObject, getObjectListIterator, getSize, has6ByteHeader, isSubsetOf, iterator, read, setObject, setupObjectList, toString, write |
Methods inherited from class org.farng.mp3.AbstractMP3FileItem |
---|
getIdentifier |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected AbstractID3v2FrameBody()
protected AbstractID3v2FrameBody(AbstractID3v2FrameBody copyObject)
copyObject
- the object to copyMethod Detail |
---|
public boolean equals(java.lang.Object obj)
AbstractMP3FragmentBody
MP3Object
array list equals the argument. This object is
equal to the argument only if they are the same class.
equals
in class AbstractMP3FragmentBody
obj
- object to determine equality of
MP3Object
array list equals the argument.protected int readHeader(java.io.RandomAccessFile file) throws java.io.IOException, InvalidTagException
AbstractMP3FragmentBody
readHeader
in class AbstractMP3FragmentBody
file
- file to read the header from.
java.io.IOException
- on any I/O error
InvalidTagException
- if there is any error in the data format.protected void writeHeader(java.io.RandomAccessFile file, int size) throws java.io.IOException
AbstractMP3FragmentBody
writeHeader
in class AbstractMP3FragmentBody
file
- file to write tosize
- number of bytes the body contains.
java.io.IOException
- on any I/O error
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |