Methods Summary |
---|
public void | accept(ID3Visitor oID3Visitor)
oID3Visitor.visitTCOPTextInformationID3V2Frame(this);
|
public boolean | equals(java.lang.Object oOther)
if ((oOther == null) || (!(oOther instanceof TCOPTextInformationID3V2Frame)))
{
return false;
}
TCOPTextInformationID3V2Frame oOtherTCOP = (TCOPTextInformationID3V2Frame)oOther;
return ( (m_iYear == oOtherTCOP.m_iYear) &&
m_sCopyrightMessage.equals(oOtherTCOP.m_sCopyrightMessage) &&
m_oTextEncoding.equals(oOtherTCOP.m_oTextEncoding) &&
m_sInformation.equals(oOtherTCOP.m_sInformation) );
|
public java.lang.String | getCopyrightMessage()Get the copyright message, not including the year.
return m_sCopyrightMessage;
|
public int | getCopyrightYear()Get the copyright year.
return m_iYear;
|
protected byte[] | getFrameId()
return "TCOP".getBytes();
|
private static java.lang.String | getYearString(int iYear)Internal method to return the year value as a four digit string.
NumberFormat oNF = new DecimalFormat("0000");
return oNF.format(iYear);
|
public void | setCopyright(int iYear, java.lang.String sCopyrightMessage)Set the copyright information for the track.
m_iYear = iYear;
m_sCopyrightMessage = sCopyrightMessage;
m_oTextEncoding = TextEncoding.getDefaultTextEncoding();
m_sInformation = getYearString(iYear) + " " + ((sCopyrightMessage == null) ? "" : sCopyrightMessage);
|
public java.lang.String | toString()
return "Copyright message: [" + m_sInformation + "]";
|