Methods Summary |
---|
public void | accept(ID3Visitor oID3Visitor)
oID3Visitor.visitWCOMUrlLinkID3V2Frame(this);
|
public boolean | equals(java.lang.Object oOther)
if ((oOther == null) || (!(oOther instanceof WCOMUrlLinkID3V2Frame)))
{
return false;
}
WCOMUrlLinkID3V2Frame oOtherWCOM = (WCOMUrlLinkID3V2Frame)oOther;
return m_sURL.equals(oOtherWCOM.m_sURL);
|
public java.lang.String | getCommercialInformationUrl()Get the commercial information URL for this track. Note, there is no guarantee that
this value will in fact be a valid URL.
return m_sURL;
|
protected byte[] | getFrameId()
return "WCOM".getBytes();
|
public void | setCommercialInformation(java.lang.String sCommercialInformationUrl)Set commercial information URL for this track.
String sOrigURL = m_sURL;
if (sCommercialInformationUrl == null)
{
throw new ID3Exception("Commercial information URL string cannot be null in WCOM frame.");
}
m_sURL = sCommercialInformationUrl;
// try this update, and reverse it if it generates and error
try
{
notifyID3Observers();
}
catch (ID3Exception e)
{
m_sURL = sOrigURL;
throw e;
}
|
public void | setCommercialInformation(java.net.URL oCommercialInformationUrl)Set commercial information URL for this track.
String sOrigURL = m_sURL;
if (oCommercialInformationUrl == null)
{
throw new ID3Exception("Commerical information URL object cannot be null in WCOM frame.");
}
m_sURL = oCommercialInformationUrl.toExternalForm();
// try this update, and reverse it if it generates and error
try
{
notifyID3Observers();
}
catch (ID3Exception e)
{
m_sURL = sOrigURL;
throw e;
}
|
public java.lang.String | toString()
return "Commercial information URL: [" + m_sURL + "]";
|