|
|||||||||||
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.lyrics3.AbstractLyrics3v2FieldBody org.farng.mp3.lyrics3.FieldBodyLYR
Lyrics multi line text. Timestamps can be used anywhere in the text in any order. Timestamp format is [mm:ss] (no spaces allowed in the timestamps).
Constructor Summary | |
FieldBodyLYR()
Creates a new FieldBodyLYR object. |
|
FieldBodyLYR(FieldBodyLYR copyObject)
Creates a new FieldBodyLYR object. |
|
FieldBodyLYR(FrameBodySYLT sync)
Creates a new FieldBodyLYR object. |
|
FieldBodyLYR(FrameBodyUSLT unsync)
Creates a new FieldBodyLYR object. |
|
FieldBodyLYR(java.io.RandomAccessFile file)
Creates a new FieldBodyLYR object. |
|
FieldBodyLYR(java.lang.String line)
Creates a new FieldBodyLYR object. |
Method Summary | |
void |
addLyric(FrameBodySYLT sync)
|
void |
addLyric(FrameBodyUSLT unsync)
|
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. |
java.lang.String |
getLyric()
|
int |
getSize()
Returns the estimated size in bytes of this object if it was to be written to file. |
boolean |
hasTimeStamp()
|
boolean |
isSubsetOf(java.lang.Object object)
Returns true if this instance and its entire MP3Object array list is a subset of the argument. |
java.util.Iterator |
iterator()
Returns an iterator of the MP3Object object list. |
void |
read(java.io.RandomAccessFile file)
Read the data from the given file into this object. |
void |
setLyric(java.lang.String str)
|
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.lyrics3.AbstractLyrics3v2FieldBody |
readHeader, writeHeader |
Methods inherited from class org.farng.mp3.AbstractMP3FragmentBody |
appendToObjectList, getBriefDescription, getDescription, getObject, getObjectListIterator, has6ByteHeader, setObject |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public FieldBodyLYR()
public FieldBodyLYR(FieldBodyLYR copyObject)
public FieldBodyLYR(java.lang.String line)
public FieldBodyLYR(FrameBodySYLT sync)
public FieldBodyLYR(FrameBodyUSLT unsync)
public FieldBodyLYR(java.io.RandomAccessFile file) throws InvalidTagException, java.io.IOException
Method Detail |
public java.lang.String getIdentifier()
AbstractMP3FileItem
getIdentifier
in class AbstractMP3FileItem
public void setLyric(java.lang.String str)
public java.lang.String getLyric()
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 void addLyric(FrameBodySYLT sync)
public void addLyric(FrameBodyUSLT unsync)
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.public boolean hasTimeStamp()
public java.util.Iterator iterator()
AbstractMP3FragmentBody
MP3Object
object list.
iterator
in class AbstractMP3FragmentBody
MP3Object
object list.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 InvalidTagException, java.io.IOException
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 |