com.filenet.rm.bds

Interface ContentElement

All known subinterfaces:
ContentReference, ContentTransfer

  1. public interface ContentElement
This abstract interface represents a single content element for a document.

Field Summary

Modifier and Type Field and Description
  1. static
  2. long
CONTENT_SIZE_UNDEFINED
Constant that is used to indicate that the content size is undefined.

Method Summary

Modifier and Type Method and Description
  1. long
getContentSize()
Returns the (optional) size in bytes of this ContentElement.
  1. java.lang.String
getMimeType()
Returns the MimeType of this ContentElement.
  1. void
setContentSize(long size)
Sets the (optional) size in bytes for this ContentElement.
  1. void
setMimeType(java.lang.String mimeType)
Sets the MimeType for this ContentElement.

Field Detail

CONTENT_SIZE_UNDEFINED

  1. static final long CONTENT_SIZE_UNDEFINED
Constant that is used to indicate that the content size is undefined.
See Also:

Method Detail

getMimeType

  1. java.lang.String getMimeType()
Returns the MimeType of this ContentElement. Defaults to "application/octet-stream".
Returns:
the String MimeType. Can be null.

setMimeType

  1. void setMimeType(java.lang.String mimeType)
Sets the MimeType for this ContentElement.
Parameters:
mimeType - the String MimeType. Cannot be null nor empty.

getContentSize

  1. 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

  1. 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.