|
Mp3dings 20100427 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthelliker.id3.APICImage
public final class APICImage
| Nested Class Summary | |
|---|---|
static class |
APICImage.PictureType
typesafe enum for picture type |
| Field Summary | |
|---|---|
static String |
MIME_TYPE_GENERIC
|
static String |
MIME_TYPE_JPEG
|
static String |
MIME_TYPE_LINK
|
static String |
MIME_TYPE_PNG
|
| Constructor Summary | |
|---|---|
APICImage(String mimeType,
byte[] imageData)
|
|
APICImage(URL url)
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
|
String |
getDescription()
Returns the value of description. |
byte[] |
getImageData()
Returns the value of imageData. |
String |
getMimeType()
Returns the value of mimeType. |
APICImage.PictureType |
getType()
Returns the value of type. |
URL |
getURL()
Returns the value of url. |
int |
hashcode()
|
void |
setDescription(String description)
Sets the value of description. |
void |
setImageData(byte[] imageData,
String mimeType)
Sets the value of imageData. |
void |
setType(APICImage.PictureType type)
Sets the value of type. |
void |
setURL(URL url)
Sets the value of url. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String MIME_TYPE_LINK
public static final String MIME_TYPE_PNG
public static final String MIME_TYPE_JPEG
public static final String MIME_TYPE_GENERIC
| Constructor Detail |
|---|
public APICImage(String mimeType,
byte[] imageData)
NullPointerException - if any of the arguments is null
IllegalArgumentException - if imageData.length == 0public APICImage(URL url)
NullPointerException - if the argument is null| Method Detail |
|---|
public APICImage.PictureType getType()
public void setType(APICImage.PictureType type)
type - The value to assign type.
NullPointerException - if type is nullpublic String getDescription()
public void setDescription(String description)
description - The value to assign description.
NullPointerException - if description is null
IllegalArgumentException - if description.length() > 64public String getMimeType()
public URL getURL()
public void setURL(URL url)
url - The value to assign url.public byte[] getImageData()
public void setImageData(byte[] imageData,
String mimeType)
imageData - The value to assign imageData.public boolean equals(Object o)
equals in class Objectpublic int hashcode()
public String toString()
toString in class Object
|
Mp3dings 20100427 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||