public interface ContentElement
Modifier and Type | Field and Description |
---|---|
static long |
CONTENT_SIZE_UNDEFINED
Constant that is used to indicate that the content size is undefined.
|
Modifier and Type | Method and Description |
---|---|
long |
getContentSize()
Returns the (optional) size in bytes of this
ContentElement . |
java.lang.String |
getMimeType()
Returns the MimeType
ContentElement . |
void |
setContentSize(long size)
Sets the (optional) size in bytes for this
ContentElement . |
void |
setMimeType(java.lang.String mimeType)
Sets the MimeType
ContentElement . |
static final long CONTENT_SIZE_UNDEFINED
java.lang.String getMimeType()
ContentElement
.
Defaults to "application/octet-stream".String
MimeType. Can be null.void setMimeType(java.lang.String mimeType)
ContentElement
.mimeType
- the String
MimeType.
Cannot be null
nor empty.long getContentSize()
ContentElement
.
Defaults to -1 to indicate that the size is unknown.void setContentSize(long size)
ContentElement
.size
- in bytes. Must be >= 0 or equal to
CONTENT_SIZE_UNDEFINED
.© Copyright IBM Corp. 2006, 2013. All Rights Reserved.