|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ocap.hn.upnp.server.UPnPManagedDeviceIcon
public class UPnPManagedDeviceIcon
This class represents a UPnP Device Icon with associated
binary data for a UPnPManagedDevice.
| Constructor Summary | |
|---|---|
UPnPManagedDeviceIcon(String mimetype,
int width,
int height,
int colordepth,
byte[] data)
Construct the instance. |
|
| Method Summary | |
|---|---|
UPnPAdvertisedDeviceIcon[] |
getAdvertisedDeviceIcons()
Gets the network representations of this UPnPManagedDeviceIcon. |
int |
getColorDepth()
Gets the color depth of this icon in bits. |
byte[] |
getData()
Gets the binary data that represents this icon. |
int |
getHeight()
Gets the height of this icon in pixels. |
String |
getMimeType()
Gets the mimetype for this UPnPDeviceIcon. |
int |
getWidth()
Gets the width of this icon in pixels. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UPnPManagedDeviceIcon(String mimetype,
int width,
int height,
int colordepth,
byte[] data)
mimetype - The mimetype of this icon in the form
image/xxxx.width - The width of this icon in pixels.height - The height of this icon in pixels.colordepth - The color depth of this icon in bits.data - A byte array containing the binary icon data.
The contents of the array are copied into the resulting
UPnPManagedDeviceIcon object.
No validation is performed on the array, but it
should contain data consistent with the other
parameters to the constructor.| Method Detail |
|---|
public byte[] getData()
public UPnPAdvertisedDeviceIcon[] getAdvertisedDeviceIcons()
UPnPManagedDeviceIcon.
Since the UPnP device description iconList element contains
information specific to the network interface on which it is advertised,
there can be multiple UPnPAdvertisedDeviceIcon objects
associated with a single UPnPManagedDeviceIcon.
UPnPManagedDeviceIcon. Returns a zero-length array if
the corresponding UPnP device has not been advertised on a network
interface.public int getColorDepth()
getColorDepth in interface UPnPDeviceIcongetAdvertisedDeviceIcons()[0].getColorDepth().public int getHeight()
getHeight in interface UPnPDeviceIcongetAdvertisedDeviceIcons()[0].getHeight().public String getMimeType()
getMimeType in interface UPnPDeviceIcongetAdvertisedDeviceIcons()[0].getMimeType().public int getWidth()
getWidth in interface UPnPDeviceIcongetAdvertisedDeviceIcons()[0].getWidth().
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||