Methods Summary |
---|
public void | accept(ID3Visitor oID3Visitor)
oID3Visitor.visitTOLYTextInformationID3V2Frame(this);
|
public boolean | equals(java.lang.Object oOther)
if ((oOther == null) || (!(oOther instanceof TOLYTextInformationID3V2Frame)))
{
return false;
}
TOLYTextInformationID3V2Frame oOtherTOLY = (TOLYTextInformationID3V2Frame)oOther;
return (m_sInformation.equals(oOtherTOLY.m_sInformation) &&
m_oTextEncoding.equals(oOtherTOLY.m_oTextEncoding) &&
Arrays.equals(m_asOriginalLyricist, oOtherTOLY.m_asOriginalLyricist));
|
protected byte[] | getFrameId()
return "TOLY".getBytes();
|
private java.lang.String[] | getLyricists(java.lang.String sValue)Split a string containing potentially several distinct values (forward-slash separated) into
an array of Strings, one value per String.
String[] asLyricist = sValue.split("/");
return asLyricist;
|
public java.lang.String[] | getOriginalLyricists()Get the original lyricist(s) or author(s) of the text for this track
return m_asOriginalLyricist;
|
public void | setOriginalLyricist(java.lang.String sOriginalLyricist)Set the original lyricist(s) or author(s) of the text in the recording in this track.
Multiple lyricists can optionally be set with this method by separating them
with a slash "/" character.
m_oTextEncoding = TextEncoding.getDefaultTextEncoding();
m_sInformation = sOriginalLyricist;
m_asOriginalLyricist = getLyricists(sOriginalLyricist);
|
public void | setOriginalLyricists(java.lang.String[] asOriginalLyricist)Set the original lyricist(s) or author(s) of the text in the recording in this track.
// build single string of lyricists, separated by "/", as described in ID3 spec
StringBuffer sbLyricists = new StringBuffer();
for (int i=0; i < asOriginalLyricist.length; i++)
{
sbLyricists.append(asOriginalLyricist[i] + "/");
}
sbLyricists.deleteCharAt(sbLyricists.length()-1); // delete last "/"
m_oTextEncoding = TextEncoding.getDefaultTextEncoding();
m_sInformation = sbLyricists.toString();
m_asOriginalLyricist = getLyricists(m_sInformation);
|
public java.lang.String | toString()
return "Original lyricist(s)/text writer(s): [" + m_sInformation + "]";
|