Methods Summary |
---|
public void | accept(ID3Visitor oID3Visitor)
oID3Visitor.visitTRCKTextInformationID3V2Frame(this);
|
public boolean | equals(java.lang.Object oOther)
if ((oOther == null) || (!(oOther instanceof TRCKTextInformationID3V2Frame)))
{
return false;
}
TRCKTextInformationID3V2Frame oOtherTRCK = (TRCKTextInformationID3V2Frame)oOther;
return ((m_iTrackNumber == oOtherTRCK.m_iTrackNumber) &&
(m_iTotalTracks == oOtherTRCK.m_iTotalTracks) &&
m_oTextEncoding.equals(oOtherTRCK.m_oTextEncoding) &&
m_sInformation.equals(oOtherTRCK.m_sInformation));
|
protected byte[] | getFrameId()
return "TRCK".getBytes();
|
public int | getTotalTracks()Get the total number of tracks in this album or collection.
if (m_iTotalTracks != -1)
{
return m_iTotalTracks;
}
else
{
throw new ID3Exception("Total number of tracks not set.");
}
|
public int | getTrackNumber()Get the track number of this recording.
return m_iTrackNumber;
|
public void | setTrackNumber(int iTrackNumber)Set the track number or position in set of this recording in its original album or collection.
if (iTrackNumber < 0)
{
throw new ID3Exception("Part number cannot be negative.");
}
m_iTrackNumber = iTrackNumber;
m_iTotalTracks = -1;
m_oTextEncoding = TextEncoding.getDefaultTextEncoding();
m_sInformation = Integer.toString(iTrackNumber);
|
public void | setTrackNumberAndTotalTracks(int iTrackNumber, int iTotalTracks)Set the track number or position in set of this recording in its original album or collection,
and the total number of tracks in the complete set.
if (iTrackNumber < 0)
{
throw new ID3Exception("Track number cannot be negative.");
}
if (iTotalTracks < iTrackNumber)
{
throw new ID3Exception("Total number of tracks must be at least as great as the track number.");
}
m_iTrackNumber = iTrackNumber;
m_iTotalTracks = iTotalTracks;
m_oTextEncoding = TextEncoding.getDefaultTextEncoding();
m_sInformation = iTrackNumber + "/" + iTotalTracks;
|
public java.lang.String | toString()
return "Track number/Position in set: [" + m_sInformation + "]";
|