|
|||||||||||
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.FieldBodyIMG
Link to an image files (BMP or JPG format). Image lines include filename, description and timestamp separated by
delimiter - two ASCII chars 124 ("||"). Description and timestamp are optional, but if timestamp is used, and there
is no description, two delimiters ("||||") should be used between the filename and the timestamp. Multiple images are
allowed by using a [CR][LF] delimiter between each image line. No [CR][LF] is needed after the last image line.
Number of images is not limited (except by the field size).
Filename can be in one of these formats:
Constructor Summary | |
FieldBodyIMG()
Creates a new FieldBodyIMG object. |
|
FieldBodyIMG(FieldBodyIMG copyObject)
Creates a new FieldBodyIMG object. |
|
FieldBodyIMG(ObjectLyrics3Image image)
Creates a new FieldBodyIMG object. |
|
FieldBodyIMG(java.io.RandomAccessFile file)
Creates a new FieldBodyIMG object. |
|
FieldBodyIMG(java.lang.String imageString)
Creates a new FieldBodyIMG object. |
Method Summary | |
void |
addImage(ObjectLyrics3Image image)
|
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. |
java.lang.String |
getValue()
|
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. |
protected void |
setupObjectList()
Create the order of MP3Object objects that this body expects. |
void |
setValue(java.lang.String value)
|
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 FieldBodyIMG()
public FieldBodyIMG(FieldBodyIMG copyObject)
public FieldBodyIMG(java.lang.String imageString)
public FieldBodyIMG(ObjectLyrics3Image image)
public FieldBodyIMG(java.io.RandomAccessFile file) throws InvalidTagException, java.io.IOException
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 void setValue(java.lang.String value)
public java.lang.String getValue()
public void addImage(ObjectLyrics3Image image)
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 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 |