public class AppResourceData
extends java.lang.Object
| Constructor and Description |
|---|
AppResourceData()
Default constructor.
|
AppResourceData(java.lang.String id,
byte[] data,
java.lang.String rawType,
long rawLength,
boolean cooked,
java.lang.String cookedType,
long cookedLength)
Convenience constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
getCooked()
Attribute to denote whether the payload of the resource is cooked.
|
long |
getCookedLength()
The length in bytes of the payload after cooking.
|
java.lang.String |
getCookedType()
If the resource is cooked, this will return the recipe used during cooking.
|
byte[] |
getData()
Returns the payload of the resource.
|
java.lang.String |
getId()
Gets The id or path identifier of the resource.
|
long |
getRawLength()
Gets the resource payload's original length.
|
java.lang.String |
getRawType()
Gets the resource's raw type or mimetype.
|
void |
setCooked(boolean cooked)
Attribute to denote whether the payload of the resource is cooked.
|
void |
setCookedLength(long cookedLength)
The length in bytes of the payload after cooking.
|
void |
setCookedType(java.lang.String cookedType)
If the resource is cooked, the type of recipe used during cooking.
|
void |
setData(byte[] data)
Sets the payload of the resource.
|
void |
setId(java.lang.String id)
Sets the id or path of the resource.
|
void |
setRawLength(long rawLength)
Sets the resource payload's original length.
|
void |
setRawType(java.lang.String rawType)
Sets the resource's raw type or mimetype.
|
public AppResourceData()
public AppResourceData(java.lang.String id,
byte[] data,
java.lang.String rawType,
long rawLength,
boolean cooked,
java.lang.String cookedType,
long cookedLength)
id - The id or path of the resource retrieved.data - The payload data of the resource (uncooked).rawType - The raw type/mimetype of the resource.rawLength - The raw length/original length in bytes of the resource.cooked - True if the resource is cooked.cookedType - Type of recipe used for cooking.cookedLength - The cooked length in bytes of the resource.public boolean getCooked()
public void setCooked(boolean cooked)
cooked - True if the resource is cooked, false otherwise.public long getCookedLength()
public void setCookedLength(long cookedLength)
cookedLength - Length in bytes of cooked payload.public java.lang.String getCookedType()
public void setCookedType(java.lang.String cookedType)
cookedType - The cooking recipe used during cooking.public byte[] getData()
public void setData(byte[] data)
data - Binary payload of the resource.public java.lang.String getId()
public void setId(java.lang.String id)
id - The id or path of the resource.public long getRawLength()
public void setRawLength(long rawLength)
rawLength - Original length of the resource in bytes before cooking.public java.lang.String getRawType()
public void setRawType(java.lang.String rawType)
rawType - Resource's type or mimetype.