org.teleal.cling.model.meta
Class Icon
java.lang.Object
org.teleal.cling.model.meta.Icon
- All Implemented Interfaces:
- Validatable
public class Icon
- extends Object
- implements Validatable
TODO: Should probably use something like javax.mail.internet.ContentType to parse mime types
Constructor Summary |
Icon(String mimeType,
int width,
int height,
int depth,
File file)
|
Icon(String mimeType,
int width,
int height,
int depth,
String uri)
|
Icon(String mimeType,
int width,
int height,
int depth,
URI uri)
|
Icon(String mimeType,
int width,
int height,
int depth,
URI uri,
byte[] data)
|
Icon(String mimeType,
int width,
int height,
int depth,
URI uri,
InputStream is)
|
Icon(String mimeType,
int width,
int height,
int depth,
URI uri,
String data)
|
Icon(String mimeType,
int width,
int height,
int depth,
URL url)
|
Icon
public Icon(String mimeType,
int width,
int height,
int depth,
String uri)
throws IllegalArgumentException
- Throws:
IllegalArgumentException
Icon
public Icon(String mimeType,
int width,
int height,
int depth,
URI uri)
Icon
public Icon(String mimeType,
int width,
int height,
int depth,
URI uri,
String data)
Icon
public Icon(String mimeType,
int width,
int height,
int depth,
URL url)
throws IOException
- Throws:
IOException
Icon
public Icon(String mimeType,
int width,
int height,
int depth,
URI uri,
InputStream is)
throws IOException
- Throws:
IOException
Icon
public Icon(String mimeType,
int width,
int height,
int depth,
File file)
throws IOException
- Throws:
IOException
Icon
public Icon(String mimeType,
int width,
int height,
int depth,
URI uri,
byte[] data)
getMimeType
public String getMimeType()
getWidth
public int getWidth()
getHeight
public int getHeight()
getDepth
public int getDepth()
getUri
public URI getUri()
getData
public byte[] getData()
getDevice
public Device getDevice()
validate
public List<ValidationError> validate()
- Specified by:
validate
in interface Validatable
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2010 Teleal GmbH, Switzerland. All Rights Reserved.