Interface ResourceStore
-
- All Known Implementing Classes:
FileResourceStore,MemoryStore
public interface ResourceStoreWhen 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
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanexists(String name)byte[]getBytes(String name)StringgetLocation()A string that uniquely identify the location of that store.InputStreamgetStream(String name)URLgetURL(String name)longlastModified(String name)voidput(String name, byte[] data)voidput(String name, InputStream data)voidremove(String name)
-
-
-
Method Detail
-
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)
-
getLocation
String getLocation()
A string that uniquely identify the location of that store. Two stores are considered equals if their locations are the same.
-
-