Class FileSystemContentObject
- java.lang.Object
-
- com.flowable.content.engine.impl.fs.FileSystemContentObject
-
- All Implemented Interfaces:
ContentObject
public class FileSystemContentObject extends Object implements ContentObject
ContentObject, backed by a file.- Author:
- Frederik Heremans
-
-
Field Summary
Fields Modifier and Type Field Description protected Filefileprotected Stringidprotected InputStreaminputStreamprotected Longlength
-
Constructor Summary
Constructors Constructor Description FileSystemContentObject(File file, String id)FileSystemContentObject(File file, String id, Long length)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStreamgetContent()longgetContentLength()StringgetId()
-
-
-
Field Detail
-
file
protected File file
-
inputStream
protected InputStream inputStream
-
id
protected String id
-
length
protected Long length
-
-
Method Detail
-
getId
public String getId()
- Specified by:
getIdin interfaceContentObject
-
getContentLength
public long getContentLength()
- Specified by:
getContentLengthin interfaceContentObject
-
getContent
public InputStream getContent()
- Specified by:
getContentin interfaceContentObject
-
-