Methods Summary |
---|
public void | accept(ID3Visitor oID3Visitor)
oID3Visitor.visitTCOMTextInformationID3V2Frame(this);
|
public boolean | equals(java.lang.Object oOther)
if ((oOther == null) || (!(oOther instanceof TCOMTextInformationID3V2Frame)))
{
return false;
}
TCOMTextInformationID3V2Frame oOtherTCOM = (TCOMTextInformationID3V2Frame)oOther;
return (m_sInformation.equals(oOtherTCOM.m_sInformation) &&
m_oTextEncoding.equals(oOtherTCOM.m_oTextEncoding) &&
Arrays.equals(m_asComposer, oOtherTCOM.m_asComposer));
|
private java.lang.String[] | getComposers(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[] asComposer = sValue.split("/");
return asComposer;
|
public java.lang.String[] | getComposers()Get the composer(s) of this track.
return m_asComposer;
|
protected byte[] | getFrameId()
return "TCOM".getBytes();
|
public void | setComposer(java.lang.String sComposer)Set the composer(s) of this track. Multiple composers can optionally be set with this method
by separating them with a slash "/" character.
m_oTextEncoding = TextEncoding.getDefaultTextEncoding();
m_sInformation = sComposer;
m_asComposer = getComposers(sComposer);
|
public void | setComposers(java.lang.String[] asComposer)Set the composer(s) of this track.
// build single string of composers, separated by "/", as described in ID3 spec
StringBuffer sbComposers = new StringBuffer();
for (int i=0; i < asComposer.length; i++)
{
sbComposers.append(asComposer[i] + "/");
}
sbComposers.deleteCharAt(sbComposers.length()-1); // delete last "/"
m_oTextEncoding = TextEncoding.getDefaultTextEncoding();
m_sInformation = sbComposers.toString();
m_asComposer = getComposers(m_sInformation);
|
public java.lang.String | toString()
return "Composer(s): [" + m_sInformation + "]";
|