com.filenet.rm.bds

Interface ContentElement

  • All Known Subinterfaces:
    ContentReference, ContentTransfer


    public interface ContentElement
    This abstract interface represents a single content element for a document.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static long CONTENT_SIZE_UNDEFINED
      Constant that is used to indicate that the content size is undefined.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      long getContentSize()
      Returns the (optional) size in bytes of this ContentElement.
      java.lang.String getMimeType()
      Returns the MimeType of this ContentElement.
      void setContentSize(long size)
      Sets the (optional) size in bytes for this ContentElement.
      void setMimeType(java.lang.String mimeType)
      Sets the MimeType for this 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:
        Constant Field Values
    • 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.

© Copyright IBM Corp. 2006, 2013. All Rights Reserved.