public abstract class AbstractResourcesStorage extends AbstractDisposable implements ResourcesStorage
Modifier and Type | Class and Description |
---|---|
static class |
AbstractResourcesStorage.AbstractResource |
ResourcesStorage.Resource
EMPTY_RESOURCESSTORAGE
Constructor and Description |
---|
AbstractResourcesStorage() |
Modifier and Type | Method and Description |
---|---|
boolean |
add(java.lang.String resourceName,
java.io.InputStream is) |
boolean |
allowRemove() |
void |
clearCache() |
protected void |
doDispose()
Internal implementation for the
AbstractDisposable.dispose() method, to be
implemented by child classes. |
boolean |
exists(java.lang.String name) |
ResourcesStorage.Resource |
getLocalizedResource(java.lang.String resourceName) |
java.util.List<ResourcesStorage.Resource> |
getLocalizedResources(java.lang.String resourceName) |
java.util.List<java.lang.String> |
getResourceNames()
Return the resource names in this store.
|
java.util.List<ResourcesStorage.Resource> |
getResources(java.lang.String resourceName) |
java.lang.String |
getSeparator() |
boolean |
isEmpty() |
boolean |
isReadOnly() |
boolean |
remove(java.lang.String resourceName) |
dispose, dispose
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createBytesResource, createFilesResourcesStorage, createFilesResourcesStorage, createMultiResourcesStorage, createResource, createResource, getResource, isEmpty
dispose
public java.lang.String getSeparator()
getSeparator
in interface ResourcesStorage
public boolean isEmpty()
isEmpty
in interface ResourcesStorage
public boolean isReadOnly()
isReadOnly
in interface ResourcesStorage
public java.util.List<ResourcesStorage.Resource> getResources(java.lang.String resourceName)
getResources
in interface ResourcesStorage
public boolean exists(java.lang.String name)
exists
in interface ResourcesStorage
public ResourcesStorage.Resource getLocalizedResource(java.lang.String resourceName)
getLocalizedResource
in interface ResourcesStorage
public java.util.List<ResourcesStorage.Resource> getLocalizedResources(java.lang.String resourceName)
getLocalizedResources
in interface ResourcesStorage
public java.util.List<java.lang.String> getResourceNames()
ResourcesStorage
getResourceNames
in interface ResourcesStorage
public boolean add(java.lang.String resourceName, java.io.InputStream is)
add
in interface ResourcesStorage
public boolean remove(java.lang.String resourceName)
remove
in interface ResourcesStorage
public boolean allowRemove()
allowRemove
in interface ResourcesStorage
protected void doDispose() throws BaseException
AbstractDisposable
AbstractDisposable.dispose()
method, to be
implemented by child classes.doDispose
in class AbstractDisposable
BaseException
AbstractDisposable.dispose()
public void clearCache()
clearCache
in interface ResourcesStorage