Methods Summary |
---|
public void | accept(ID3Visitor oID3Visitor)
oID3Visitor.visitPOSSID3V2Frame(this);
|
public boolean | equals(java.lang.Object oOther)
if ((oOther == null) || (!(oOther instanceof POSSID3V2Frame)))
{
return false;
}
POSSID3V2Frame oOtherPOSS = (POSSID3V2Frame)oOther;
return (m_oTimestampFormat.equals(oOtherPOSS.m_oTimestampFormat) &&
(m_iPosition == oOtherPOSS.m_iPosition));
|
protected byte[] | getFrameId()
return "POSS".getBytes();
|
public int | getPosition()Get the position of the start of this track.
return m_iPosition;
|
public org.blinkenlights.jid3.v2.POSSID3V2Frame$TimestampFormat | getTimestampFormat()Get the timestamp format.
return m_oTimestampFormat;
|
public void | setPositionSynchronizationValue(org.blinkenlights.jid3.v2.POSSID3V2Frame$TimestampFormat oTimestampFormat, int iPosition)Set position synchronization values for this frame.
if (oTimestampFormat == null)
{
throw new ID3Exception("Timestamp format required in POSS frame.");
}
m_oTimestampFormat = oTimestampFormat;
if (iPosition < 0)
{
throw new ID3Exception("Position cannot be negative in POSS frame.");
}
m_iPosition = iPosition;
|
public java.lang.String | toString()
return "Position Synchronization: Timestamp format=[" + m_oTimestampFormat.getValue() +
"], Position=[" + m_iPosition + "]";
|
protected void | writeBody(ID3DataOutputStream oIDOS)
// timestamp format
oIDOS.writeUnsignedByte(m_oTimestampFormat.getValue());
// position (always four bytes)
oIDOS.writeBE32(m_iPosition);
|