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
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
exists(String name)
byte[]
getBytes(String name)
String
getLocation()
A string that uniquely identify the location of that store.InputStream
getStream(String name)
URL
getURL(String name)
long
lastModified(String name)
void
put(String name, byte[] data)
void
put(String name, InputStream data)
void
remove(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)
-
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.
-
-