public class FileResourceStore extends Object implements ResourceStore
| Constructor and Description |
|---|
FileResourceStore(File root) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
boolean |
exists(String name) |
byte[] |
getBytes(String name) |
File |
getFile(String name) |
String |
getLocation()
A string that uniquely identify the location of that store.
|
File |
getRoot() |
InputStream |
getStream(String name) |
URL |
getURL(String name) |
int |
hashCode() |
long |
lastModified(String name) |
void |
put(String name,
byte[] data) |
void |
put(String name,
InputStream data) |
void |
remove(String name) |
String |
toString() |
public FileResourceStore(File root) throws IOException
IOExceptionpublic boolean exists(String name)
exists in interface ResourceStorepublic long lastModified(String name)
lastModified in interface ResourceStorepublic URL getURL(String name)
getURL in interface ResourceStorepublic byte[] getBytes(String name)
getBytes in interface ResourceStorepublic InputStream getStream(String name)
getStream in interface ResourceStorepublic void remove(String name)
remove in interface ResourceStorepublic void put(String name, byte[] data) throws IOException
put in interface ResourceStoreIOExceptionpublic void put(String name, InputStream data) throws IOException
put in interface ResourceStoreIOExceptionpublic String getLocation()
ResourceStoregetLocation in interface ResourceStoreCopyright © 2018 Nuxeo. All rights reserved.