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 ContentObjectpublic long getContentLength()
getContentLength in interface ContentObjectpublic InputStream getContent()
getContent in interface ContentObject