com.filenet.rm.bds
Interface ContentElement
All known subinterfaces:
- public interface ContentElement
Field Summary
Modifier and Type | Field and Description |
---|---|
|
CONTENT_SIZE_UNDEFINED
Constant that is used to indicate that the content size is undefined.
|
Method Summary
Modifier and Type | Method and Description |
---|---|
|
getContentSize()
Returns the (optional) size in bytes of this
ContentElement .
|
|
getMimeType()
Returns the MimeType
ContentElement .
|
|
setContentSize(long size)
Sets the (optional) size in bytes for this
ContentElement .
|
|
setMimeType(java.lang.String mimeType)
Sets the MimeType
ContentElement .
|
Field Detail
CONTENT_SIZE_UNDEFINED
- static final long CONTENT_SIZE_UNDEFINED
Constant that is used to indicate that the content size is undefined.
See Also:
Method Detail
getMimeType
- java.lang.String getMimeType()
Returns the MimeType of this
ContentElement
.
Defaults to "application/octet-stream".
Returns:
the
String
MimeType. Can be null. setMimeType
- void setMimeType(java.lang.String mimeType)
Sets the MimeType for this
ContentElement
.
Parameters:
mimeType
- the String
MimeType.
Cannot be null
nor empty. getContentSize
- long getContentSize()
Returns the (optional) size in bytes of this
ContentElement
.
Defaults to -1 to indicate that the size is unknown.
Returns:
the size in bytes, or -1 if unknown.
setContentSize
- void setContentSize(long size)
Sets the (optional) size in bytes for this
ContentElement
.
Parameters:
size
- in bytes. Must be >= 0 or equal to
CONTENT_SIZE_UNDEFINED
.