⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 .#upnpdevice.java.1.3

📁 国外的j2me播放器软件
💻 3
字号:
package no.auc.one.portableplayer.communication;

import no.auc.one.portableplayer.utils.*;

/**
 * Generic class for describing a Universal Plug & Play device.
 *
 * @version $Revision: 1.3 $
 *
 * $Id: UPnPDevice.java,v 1.3 2005/12/14 12:54:28 ahaeber Exp $
 */
public class UPnPDevice implements Cloneable {
    /**
     * Name of the device
     */
    protected String friendlyName;

    /**
     * Base URL for all URLs in the device description of this device.
     */
    protected String urlBase;

    /**
     * Constructs an empty device.
     */
    public UPnPDevice() {
        friendlyName = "";
        urlBase = "";
    }

    /**
     * Constructs a new device based on the parameters.
     *
     * @param name Friendly name of the device. @see friendlyName.
     *
     * @param urlBase Base URL for this device. @see urlBase.
     */
    public UPnPDevice(String name, String urlBase) {
        friendlyName = name;
        this.urlBase = urlBase;
    }
    
    /**
     * Clone this device.
     *
     * @return Identical copy of this class instance.
     */
    public Object clone () {
        return new UPnPDevice(friendlyName, urlBase);
    }

    /**
     * Get the {@link friendlyName name}.
     *
     * @return Name of this device.
     */
    public String getFriendlyName() {
        return friendlyName;
    }

    /**
     * Get the {@linkplain urlBase Base URL} of this device.
     *
     * @return URL base for this device.
     */
    public String getURLBase() {
        return urlBase;
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -