Methods Summary |
---|
public void | accept(ID3Visitor oID3Visitor)
oID3Visitor.visitTOPETextInformationID3V2Frame(this);
|
public boolean | equals(java.lang.Object oOther)
if ((oOther == null) || (!(oOther instanceof TOPETextInformationID3V2Frame)))
{
return false;
}
TOPETextInformationID3V2Frame oOtherTOPE = (TOPETextInformationID3V2Frame)oOther;
return (m_sInformation.equals(oOtherTOPE.m_sInformation) &&
m_oTextEncoding.equals(oOtherTOPE.m_oTextEncoding) &&
Arrays.equals(m_asOriginalPerformer, oOtherTOPE.m_asOriginalPerformer));
|
protected byte[] | getFrameId()
return "TOPE".getBytes();
|
public java.lang.String[] | getOriginalPerformers()Get the original author(s) or performer(s) for this track
return m_asOriginalPerformer;
|
private java.lang.String[] | getPerformers(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[] asPerformer = sValue.split("/");
return asPerformer;
|
public void | setOriginalPerformer(java.lang.String sOriginalPerformer)Set the original author(s) or performer(s) for the recording in this track.
Multiple performers can optionally be set with this method by separating them
with a slash "/" character.
m_oTextEncoding = TextEncoding.getDefaultTextEncoding();
m_sInformation = sOriginalPerformer;
m_asOriginalPerformer = getPerformers(sOriginalPerformer);
|
public void | setOriginalPerformers(java.lang.String[] asOriginalPerformer)Set the original author(s) or performer(s) for the recording in this track.
// build single string of lyricists, separated by "/", as described in ID3 spec
StringBuffer sbPerformers = new StringBuffer();
for (int i=0; i < asOriginalPerformer.length; i++)
{
sbPerformers.append(asOriginalPerformer[i] + "/");
}
sbPerformers.deleteCharAt(sbPerformers.length()-1); // delete last "/"
m_oTextEncoding = TextEncoding.getDefaultTextEncoding();
m_sInformation = sbPerformers.toString();
m_asOriginalPerformer = getPerformers(m_sInformation);
|
public java.lang.String | toString()
return "Original artist(s)/performer(s): [" + m_sInformation + "]";
|