|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.felix.upnp.sample.binaryLight.icons.LightIcon
public class LightIcon
Constructor Summary | |
---|---|
LightIcon()
|
Method Summary | |
---|---|
int |
getDepth()
Returns the color depth of the icon in bits. |
int |
getHeight()
Returns the height of the icon in pixels. |
InputStream |
getInputStream()
Returns an InputStream object for the icon data. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LightIcon()
Method Detail |
---|
public String getMimeType()
UPnPIcon
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"
getMimeType
in interface UPnPIcon
public int getWidth()
UPnPIcon
getWidth
in interface UPnPIcon
public int getHeight()
UPnPIcon
getHeight
in interface UPnPIcon
public int getSize()
UPnPIcon
InputStream
object obtained by the
getInputStream()
method. If the actual size can not be
determined, -1 is returned.
getSize
in interface UPnPIcon
public int getDepth()
UPnPIcon
getDepth
in interface UPnPIcon
public InputStream getInputStream() throws IOException
UPnPIcon
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 availble via the getMimeType()
method.
getInputStream
in interface UPnPIcon
IOException
- If the InputStream
cannot be returned.UPnPIcon.getMimeType()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |