|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.appengine.api.conversion.Asset
public final class Asset
An immutable asset for conversion. A conversion document must contain at least one asset, typically the document contents. Additional asset can be referenced from the main asset, such as in case of images or CSS files from HTML documents.
Constructor Summary | |
---|---|
Asset(java.lang.String mimeType,
byte[] data)
Constructs an asset. |
|
Asset(java.lang.String mimeType,
byte[] data,
java.lang.String name)
Constructs an asset. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
|
byte[] |
getData()
Returns the asset's data. |
java.lang.String |
getMimeType()
Returns the asset's mime type. |
java.lang.String |
getName()
Returns the asset's name, or null if not present. |
int |
hashCode()
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Asset(java.lang.String mimeType, byte[] data)
mimeType
- the asset's mime typedata
- the asset's datapublic Asset(java.lang.String mimeType, byte[] data, java.lang.String name)
mimeType
- the asset's mime typedata
- the asset's dataname
- the asset's name, or null if noneMethod Detail |
---|
public java.lang.String getMimeType()
public byte[] getData()
public java.lang.String getName()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |