public class UPnPManagedDeviceIcon extends Object implements UPnPDeviceIcon
UPnPManagedDevice.| Constructor and Description |
|---|
UPnPManagedDeviceIcon(String mimetype,
int width,
int height,
int colordepth,
byte[] data)
Construct the instance.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
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.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().Copyright © 2013 CableLabs. All rights reserved.