|
|||||||||||
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 org.farng.mp3.id3.FrameBodyUnsupported
This frame is used if the frame identifier is not recognized. the contents of the frame are read as a byte stream and kept so they can be saved when the file is written again
Constructor Summary | |
FrameBodyUnsupported(byte[] value)
Creates a new FrameBodyUnsupported object. |
|
FrameBodyUnsupported(FrameBodyUnsupported copyObject)
Creates a new FrameBodyUnsupported object. |
|
FrameBodyUnsupported(java.io.RandomAccessFile file)
Creates a new FrameBodyUnsupported object. |
Method Summary | |
boolean |
equals(java.lang.Object obj)
Returns true if this object and its entire MP3Object array list equals the argument. |
java.lang.String |
getIdentifier()
ID string that usually corresponds to the class name, but can be displayed to the user. |
int |
getSize()
Returns the estimated size in bytes of this object if it was to be written to file. |
boolean |
isSubsetOf(java.lang.Object object)
Returns true if this instance and its entire MP3Object array list is a subset of the argument. |
void |
read(java.io.RandomAccessFile file)
Read the data from the given file into this object. |
protected void |
setupObjectList()
Create the order of MP3Object objects that this body expects. |
java.lang.String |
toString()
Calls toString for all MP3Object objects and creates a string with a new line
character. |
void |
write(java.io.RandomAccessFile file)
Write the contents of this object to the file at the position it is currently at. |
Methods inherited from class org.farng.mp3.id3.AbstractID3v2FrameBody |
readHeader, writeHeader |
Methods inherited from class org.farng.mp3.AbstractMP3FragmentBody |
appendToObjectList, getBriefDescription, getDescription, getObject, getObjectListIterator, has6ByteHeader, iterator, setObject |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public FrameBodyUnsupported(byte[] value)
public FrameBodyUnsupported(FrameBodyUnsupported copyObject)
public FrameBodyUnsupported(java.io.RandomAccessFile file) throws java.io.IOException, InvalidTagException
Method Detail |
public java.lang.String getIdentifier()
AbstractMP3FileItem
getIdentifier
in class AbstractMP3FileItem
public int getSize()
AbstractMP3FragmentBody
getSize
in class AbstractMP3FragmentBody
public boolean isSubsetOf(java.lang.Object object)
AbstractMP3FragmentBody
MP3Object
array list is a subset of the argument. This
class is a subset if it is the same class as the argument.
isSubsetOf
in class AbstractMP3FragmentBody
object
- object to determine subset of
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 AbstractID3v2FrameBody
protected void setupObjectList()
AbstractMP3FragmentBody
MP3Object
objects that this body expects. This method needs to be overwritten.
setupObjectList
in class AbstractMP3FragmentBody
public void read(java.io.RandomAccessFile file) throws java.io.IOException, InvalidTagException
AbstractMP3FragmentBody
read
in class AbstractMP3FragmentBody
file
- file to read from
InvalidTagException
- if there is any error in the data format.
java.io.IOException
- on any I/O errorpublic java.lang.String toString()
AbstractMP3FragmentBody
toString
for all MP3Object
objects and creates a string with a new line
character.
toString
in class AbstractMP3FragmentBody
public void write(java.io.RandomAccessFile file) throws java.io.IOException
AbstractMP3FragmentBody
write
in class AbstractMP3FragmentBody
file
- destination file
java.io.IOException
- on any I/O error
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |