Methods Summary |
---|
public boolean | equals(java.lang.Object obj)
if (!(obj instanceof Lyrics3Image))
{
return false;
}
Lyrics3Image object = (Lyrics3Image) obj;
if (!this.description.equals(object.description))
{
return false;
}
if (!this.filename.equals(object.filename))
{
return false;
}
if (this.time == null)
{
if (object.time != null)
{
return false;
}
}
else
{
if (!this.time.equals(object.time))
{
return false;
}
}
return super.equals(obj);
|
public java.lang.String | getDescription()
return this.description;
|
public java.lang.String | getFilename()
return this.filename;
|
public int | getSize()
int size;
size = filename.length() + 2 + description.length() + 2;
if (time != null)
{
size += time.getSize();
}
return size;
|
public Lyrics3TimeStamp | getTimeStamp()
return this.time;
|
public void | readByteArray(byte[] arr, int offset)
readString(arr.toString(), offset);
|
public void | readString(java.lang.String imageString, int offset)
if (imageString == null)
{
throw new NullPointerException("Image string is null");
}
if ((offset < 0) || (offset >= imageString.length()))
{
throw new IndexOutOfBoundsException("Offset to image string is out of bounds: offset = " + offset + ", string.length()" + imageString.length());
}
if (imageString != null)
{
String timestamp;
int delim;
delim = imageString.indexOf("||", offset);
filename = imageString.substring(offset, delim);
offset = delim + 2;
delim = imageString.indexOf("||", offset);
description = imageString.substring(offset, delim);
offset = delim + 2;
timestamp = imageString.substring(offset);
if (timestamp.length() == 7)
{
time = new Lyrics3TimeStamp("Time Stamp");
time.readString(timestamp);
}
}
|
public void | setDescription(java.lang.String description)
this.description = description;
|
public void | setFilename(java.lang.String filename)
this.filename = filename;
|
public void | setTimeStamp(Lyrics3TimeStamp time)
this.time = time;
|
public java.lang.String | toString()
String str;
str = "filename = " + filename + ", description = " + description;
if (time != null)
{
str += (", timestamp = " + time.toString());
}
return str + "\n";
|
public byte[] | writeByteArray()
return Utils.getDefaultBytes(writeString(), "ISO-8859-1");
|
public java.lang.String | writeString()
String str;
if (filename == null)
{
str = "||";
}
else
{
str = filename + "||";
}
if (description == null)
{
str += "||";
}
else
{
str += (description + "||");
}
if (time != null)
{
str += time.writeString();
}
return str;
|