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
IOException
public File getRoot()
public boolean exists(String name)
exists
in interface ResourceStore
public long lastModified(String name)
lastModified
in interface ResourceStore
public URL getURL(String name)
getURL
in interface ResourceStore
public byte[] getBytes(String name)
getBytes
in interface ResourceStore
public InputStream getStream(String name)
getStream
in interface ResourceStore
public void remove(String name)
remove
in interface ResourceStore
public void put(String name, byte[] data) throws IOException
put
in interface ResourceStore
IOException
public void put(String name, InputStream data) throws IOException
put
in interface ResourceStore
IOException
public String getLocation()
ResourceStore
getLocation
in interface ResourceStore
Copyright © 2013 Nuxeo SA. All Rights Reserved.