Class FileSystemContentObject

  • All Implemented Interfaces:
    org.flowable.content.api.ContentObject

    public class FileSystemContentObject
    extends java.lang.Object
    implements org.flowable.content.api.ContentObject
    ContentObject, backed by a file.
    Author:
    Frederik Heremans
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.io.File file  
      protected java.lang.String id  
      protected java.io.InputStream inputStream  
      protected java.lang.Long length  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.io.InputStream getContent()  
      long getContentLength()  
      java.lang.String getId()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • file

        protected java.io.File file
      • inputStream

        protected java.io.InputStream inputStream
      • id

        protected java.lang.String id
      • length

        protected java.lang.Long length
    • Constructor Detail

      • FileSystemContentObject

        public FileSystemContentObject​(java.io.File file,
                                       java.lang.String id)
      • FileSystemContentObject

        public FileSystemContentObject​(java.io.File file,
                                       java.lang.String id,
                                       java.lang.Long length)
    • Method Detail

      • getId

        public java.lang.String getId()
        Specified by:
        getId in interface org.flowable.content.api.ContentObject
      • getContentLength

        public long getContentLength()
        Specified by:
        getContentLength in interface org.flowable.content.api.ContentObject
      • getContent

        public java.io.InputStream getContent()
        Specified by:
        getContent in interface org.flowable.content.api.ContentObject