Class JCRLocalCMISDrive.DocumentContent

  • All Implemented Interfaces:
    org.exoplatform.services.cms.clouddrives.viewer.ContentReader
    Enclosing class:
    JCRLocalCMISDrive

    protected class JCRLocalCMISDrive.DocumentContent
    extends Object
    implements org.exoplatform.services.cms.clouddrives.viewer.ContentReader
    The Class DocumentContent.
    • Field Detail

      • content

        protected final org.apache.chemistry.opencmis.commons.data.ContentStream content
        The content.
      • type

        protected final String type
        The type.
      • length

        protected final long length
        The length.
      • fileName

        protected final String fileName
        The file name.
    • Constructor Detail

      • DocumentContent

        protected DocumentContent​(org.apache.chemistry.opencmis.commons.data.ContentStream content,
                                  String type,
                                  String fileName)
        Instantiates a new document content.
        Parameters:
        content - the content
        type - the type
        fileName - the file name
    • Method Detail

      • getStream

        public InputStream getStream()
        Specified by:
        getStream in interface org.exoplatform.services.cms.clouddrives.viewer.ContentReader
      • getMimeType

        public String getMimeType()
        Specified by:
        getMimeType in interface org.exoplatform.services.cms.clouddrives.viewer.ContentReader
      • getTypeMode

        public String getTypeMode()
        Specified by:
        getTypeMode in interface org.exoplatform.services.cms.clouddrives.viewer.ContentReader
      • getLength

        public long getLength()
        Specified by:
        getLength in interface org.exoplatform.services.cms.clouddrives.viewer.ContentReader