Methods Summary |
---|
public void | accept(ID3Visitor oID3Visitor)
oID3Visitor.visitTKEYTextInformationID3V2Frame(this);
|
public boolean | equals(java.lang.Object oOther)
if ((oOther == null) || (!(oOther instanceof TKEYTextInformationID3V2Frame)))
{
return false;
}
TKEYTextInformationID3V2Frame oOtherTKEY = (TKEYTextInformationID3V2Frame)oOther;
return (m_sInitialKey.equals(oOtherTKEY.m_sInitialKey) &&
m_oTextEncoding.equals(oOtherTKEY.m_oTextEncoding) &&
m_sInformation.equals(oOtherTKEY.m_sInformation));
|
protected byte[] | getFrameId()
return "TKEY".getBytes();
|
public java.lang.String | getInitialKey()Get the initial key of the track. There is no guarantee that values read from a file
will be in a valid format.
return m_sInitialKey;
|
public void | setInitialKey(java.lang.String sInitialKey)Set the initial key of the track.
// check to make sure initial key format is valid
if (! sInitialKey.matches("([A-G][#b]?m?|o)"))
{
throw new ID3Exception("Invalid initial key string.");
}
m_sInitialKey = sInitialKey;
m_oTextEncoding = TextEncoding.getDefaultTextEncoding();
m_sInformation = sInitialKey;
|
public java.lang.String | toString()
return "Initial key: [" + m_sInformation + "]";
|