Class FileSystemContentObject

java.lang.Object
com.flowable.content.engine.impl.fs.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  
  • Constructor Summary

    Constructors 
    Constructor Description
    FileSystemContentObject​(java.io.File file, java.lang.String id)  
    FileSystemContentObject​(java.io.File file, java.lang.String id, java.lang.Long length)  
  • Method Summary

    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 Details

    • 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 Details

  • Method Details

    • 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