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