public class FileSystemContentObject extends Object implements ContentObject
ContentObject
, backed by a file.Modifier and Type | Field and Description |
---|---|
protected File |
file |
protected String |
id |
protected InputStream |
inputStream |
protected Long |
length |
Constructor and Description |
---|
FileSystemContentObject(File file,
String id) |
FileSystemContentObject(File file,
String id,
Long length) |
Modifier and Type | Method and Description |
---|---|
InputStream |
getContent() |
long |
getContentLength() |
String |
getId() |
protected File file
protected InputStream inputStream
protected String id
protected Long length
public String getId()
getId
in interface ContentObject
public long getContentLength()
getContentLength
in interface ContentObject
public InputStream getContent()
getContent
in interface ContentObject