Methods Summary |
---|
public void | accept(ID3Visitor oID3Visitor)
oID3Visitor.visitTEXTTextInformationID3V2Frame(this);
|
public boolean | equals(java.lang.Object oOther)
if ((oOther == null) || (!(oOther instanceof TEXTTextInformationID3V2Frame)))
{
return false;
}
TEXTTextInformationID3V2Frame oOtherTEXT = (TEXTTextInformationID3V2Frame)oOther;
return (m_sInformation.equals(oOtherTEXT.m_sInformation) &&
m_oTextEncoding.equals(oOtherTEXT.m_oTextEncoding) &&
Arrays.equals(m_asLyricist, oOtherTEXT.m_asLyricist));
|
protected byte[] | getFrameId()
return "TEXT".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[] | getLyricists()Get the lyricist(s) or author(s) of the text for this track
return m_asLyricist;
|
public void | setLyricist(java.lang.String sLyricist)Set the 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 = sLyricist;
m_asLyricist = getLyricists(sLyricist);
|
public void | setLyricists(java.lang.String[] asLyricist)Set the 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 < asLyricist.length; i++)
{
sbLyricists.append(asLyricist[i] + "/");
}
sbLyricists.deleteCharAt(sbLyricists.length()-1); // delete last "/"
m_oTextEncoding = TextEncoding.getDefaultTextEncoding();
m_sInformation = sbLyricists.toString();
m_asLyricist = getLyricists(m_sInformation);
|
public java.lang.String | toString()
return "Lyricist(s)/Text writer(s): [" + m_sInformation + "]";
|