public interface UPnPIcon
Modifier and Type | Method and Description |
---|---|
int |
getDepth()
Returns the color depth of the icon in bits.
|
int |
getHeight()
Returns the height of the icon in pixels.
|
java.io.InputStream |
getInputStream()
Returns an
InputStream object for the icon data. |
java.lang.String |
getMimeType()
Returns the MIME type of the icon.
|
int |
getSize()
Returns the size of the icon in bytes.
|
int |
getWidth()
Returns the width of the icon in pixels.
|
java.lang.String getMimeType()
InputStream
object obtained by the getInputStream()
method, is encoded.
The format of the returned string is in accordance to RFC2046. A list of valid MIME types is maintained by the IANA.
Typical values returned include: "image/jpeg" or "image/gif"
This method must continue to return the icon MIME type after the UPnP device has been removed from the network.
int getWidth()
This method must continue to return the icon width after the UPnP device has been removed from the network.
int getHeight()
This method must continue to return the icon height after the UPnP device has been removed from the network.
int getSize()
InputStream
object obtained by the
getInputStream()
method. If the actual size can not be
determined, -1 is returned.java.lang.IllegalStateException
- if the UPnP device has been removed from
the network.int getDepth()
This method must continue to return the icon depth after the UPnP device has been removed from the network.
java.io.InputStream getInputStream() throws java.io.IOException
InputStream
object for the icon data.
The InputStream
object provides a way for a client to read the
actual icon graphics data. The number of bytes available from this
InputStream
object can be determined via the getSize()
method. The format of the data encoded can be determined by the MIME type
available via the getMimeType()
method.java.io.IOException
- If the InputStream
cannot be returned.java.lang.IllegalStateException
- if the UPnP device has been removed from
the network.getMimeType()
Copyright © OSGi Alliance (2000, 2018). All Rights Reserved. Licensed under the OSGi Specification License, Version 2.0