FileDocCategorySizeDatePackage
WPAYUrlLinkID3V2Frame.javaAPI Docjid3 0.463434Sun Feb 06 18:11:21 GMT 2005org.blinkenlights.jid3.v2

WPAYUrlLinkID3V2Frame

public class WPAYUrlLinkID3V2Frame extends UrlLinkID3V2Frame
author
paul Url frame which contains the location at which payment for this recording can be made.

Fields Summary
Constructors Summary
public WPAYUrlLinkID3V2Frame(String sPaymentUrl)
Constructor.

param
sPaymentUrl URL pointing to the location where payment for this recording can be made
throws
ID3Exception if the URL passed is null

        super(sPaymentUrl);
    
public WPAYUrlLinkID3V2Frame(URL oPaymentUrl)
Constructor.

param
oPaymentUrl URL pointing to the location where payment for this recording can be made
throws
ID3Exception if the URL passed is null

        super(oPaymentUrl);
    
public WPAYUrlLinkID3V2Frame(InputStream oIS)

        super(oIS);
    
Methods Summary
public voidaccept(ID3Visitor oID3Visitor)

        oID3Visitor.visitWPAYUrlLinkID3V2Frame(this);
    
public booleanequals(java.lang.Object oOther)

        if ((oOther == null) || (!(oOther instanceof WPAYUrlLinkID3V2Frame)))
        {
            return false;
        }
        
        WPAYUrlLinkID3V2Frame oOtherWPAY = (WPAYUrlLinkID3V2Frame)oOther;
        
        return m_sURL.equals(oOtherWPAY.m_sURL);
    
protected byte[]getFrameId()

        return "WPAY".getBytes();
    
public java.lang.StringgetPaymentLocationUrl()
Get the payment location URL for this track. Note, there is no guarantee that this value will in fact be a valid URL.

return
a string containing the set URL

        return m_sURL;
    
public voidsetPaymentLocation(java.lang.String sPaymentUrl)
Set the payment location URL for this track.

param
sPaymentUrl a string containing an URL

        m_sURL = sPaymentUrl;
    
public voidsetPaymentLocation(java.net.URL oPaymentUrl)
Set the payment location URL for this track.

param
oPaymentUrl an URL

        m_sURL = oPaymentUrl.toExternalForm();
    
public java.lang.StringtoString()

        return "Payment URL: [" + m_sURL + "]";