Methods Summary |
---|
public void | accept(ID3Visitor oID3Visitor)
oID3Visitor.visitTYERTextInformationID3V2Frame(this);
|
public boolean | equals(java.lang.Object oOther)
if ((oOther == null) || (!(oOther instanceof TYERTextInformationID3V2Frame)))
{
return false;
}
TYERTextInformationID3V2Frame oOtherTYER = (TYERTextInformationID3V2Frame)oOther;
return ( (m_iYear == oOtherTYER.m_iYear) &&
m_oTextEncoding.equals(oOtherTYER.m_oTextEncoding) &&
m_sInformation.equals(oOtherTYER.m_sInformation) );
|
protected byte[] | getFrameId()
return "TYER".getBytes();
|
public int | getYear()Get the year of the recording in this track.
return m_iYear;
|
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 | setYear(int iYear)Set the year of the recording in this track.
// it is required that the year value string be four characters long
if ((iYear < 0) || (iYear > 9999))
{
throw new ID3Exception("Year in TYER tag must be between 0 and 9999.");
}
m_iYear = iYear;
m_oTextEncoding = TextEncoding.getDefaultTextEncoding();
m_sInformation = getYearString(iYear);
|
public java.lang.String | toString()
return "Year: [" + m_sInformation + "]";
|