Methods Summary |
---|
public void | accept(ID3Visitor oID3Visitor)
oID3Visitor.visitTPOSTextInformationID3V2Frame(this);
|
public boolean | equals(java.lang.Object oOther)
if ((oOther == null) || (!(oOther instanceof TPOSTextInformationID3V2Frame)))
{
return false;
}
TPOSTextInformationID3V2Frame oOtherTPOS = (TPOSTextInformationID3V2Frame)oOther;
return ((m_iPartNumber == oOtherTPOS.m_iPartNumber) &&
(m_iTotalParts == oOtherTPOS.m_iTotalParts) &&
m_oTextEncoding.equals(oOtherTPOS.m_oTextEncoding) &&
m_sInformation.equals(oOtherTPOS.m_sInformation));
|
protected byte[] | getFrameId()
return "TPOS".getBytes();
|
public int | getPartNumber()Get the part number in the set to which this recording belongs.
return m_iPartNumber;
|
public int | getTotalParts()Get the total number of parts in the complete set to which this recording belongs.
return m_iTotalParts;
|
public void | setPartNumber(int iPartNumber)Set the part number in the set to which this recording belongs.
if (iPartNumber < 0)
{
throw new ID3Exception("Part number cannot be negative.");
}
m_iPartNumber = iPartNumber;
m_iTotalParts = -1;
m_oTextEncoding = TextEncoding.getDefaultTextEncoding();
m_sInformation = Integer.toString(iPartNumber);
|
public void | setPartNumberAndTotalParts(int iPartNumber, int iTotalParts)Set the part number in the set to which this recording belongs, and the total number
of parts in the complete set.
if (iPartNumber < 0)
{
throw new ID3Exception("Part number cannot be negative.");
}
if (iTotalParts < iPartNumber)
{
throw new ID3Exception("Total number of parts must be at least as great as the part number.");
}
m_iPartNumber = iPartNumber;
m_iTotalParts = iTotalParts;
m_oTextEncoding = TextEncoding.getDefaultTextEncoding();
m_sInformation = iPartNumber + "/" + iTotalParts;
|
public java.lang.String | toString()
return "Part of a set: [" + m_sInformation + "]";
|