|
Constructor Summary | |||
ContentData(String contentUrl, String mimetype, long size, String encoding) Create a content data using the default locale. |
|||
ContentData(String contentUrl, String mimetype, long size, String encoding, Locale locale) Create a compound set of data representing a single instance of content. |
|||
protected |
ContentData(ContentData original) Copy constructor for derived class |
Method Summary | ||
static ContentData |
createContentProperty(String contentPropertyStr) Construct a content property from a string |
|
boolean |
equals(Object obj) | |
getContentUrl() | ||
getEncoding() Gets the content's encoding. |
||
getInfoUrl() | ||
getLocale() Get the content's locale. |
||
getMimetype() Gets content's mimetype. |
||
long |
getSize() Get the content's size |
|
static boolean |
hasContent(ContentData contentData) Helper method to determine if the data represents any physical content or not. |
|
int |
hashCode() | |
static ContentData |
setEncoding(ContentData existing, String encoding) Constructs a new instance using the existing one as a template, but replacing the encoding. |
|
static ContentData |
setMimetype(ContentData existing, String mimetype) Constructs a new instance using the existing one as a template, but replacing the mimetype |
|
toString() |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
In order to ensure data integrity, the mimetype must be set if the content URL is set.
contentUrl=xxx|mimetype=xxx|size=xxx|encoding=xxx|locale=xxx
contentUrl=xxx|mimetype=xxx|size=xxx|encoding=xxx|locale=xxx
|