public class FileResource extends StreamResource
| Modifier and Type | Field and Description |
|---|---|
private java.io.File |
file |
private long |
timestamp |
| Constructor and Description |
|---|
FileResource(java.io.File file) |
FileResource(java.lang.String path) |
| Modifier and Type | Method and Description |
|---|---|
protected java.io.InputStream |
fetchStream() |
java.lang.String |
getName() |
boolean |
refresh() |
Resource |
resolve(java.lang.String relativePath) |
fetchContent, setEncodinggetContent, invalidateCachedContentpublic FileResource(java.lang.String path)
public FileResource(java.io.File file)
protected java.io.InputStream fetchStream()
throws java.io.IOException
fetchStream in class StreamResourcejava.io.IOExceptionpublic boolean refresh()
throws java.io.IOException