org.nuxeo.ecm.webengine.loader.store
Interface ResourceStore
- All Known Implementing Classes:
- FileResourceStore, MemoryStore
public interface ResourceStore
When implementing a resource store you should implement equals and hashCode method.
A store is equals to another if the store location is the same.
- Author:
- Bogdan Stefanescu
put
void put(String name,
InputStream data)
throws IOException
- Throws:
IOException
put
void put(String name,
byte[] data)
throws IOException
- Throws:
IOException
getStream
InputStream getStream(String name)
getBytes
byte[] getBytes(String name)
remove
void remove(String name)
exists
boolean exists(String name)
lastModified
long lastModified(String name)
getURL
URL getURL(String name)
getLocation
String getLocation()
- A string that uniquely identify the location of that store.
Two stores are considered equals if their locations are the same.
Copyright © 2011 Nuxeo SAS. All Rights Reserved.