public class BaseMultiResourcesStorage extends AbstractDisposable implements MultiResourcesStorage
ResourcesStorage.Resource
EMPTY_RESOURCESSTORAGE
Constructor and Description |
---|
BaseMultiResourcesStorage() |
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 resourceName) |
ResourcesStorage.Resource |
getLocalizedResource(java.lang.String resourceName) |
java.util.List<ResourcesStorage.Resource> |
getLocalizedResources(java.lang.String resourceName) |
ResourcesStorage.Resource |
getResource(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.util.List<ResourcesStorage> |
getResourcesPaths() |
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, isEmpty
dispose
public java.util.List<ResourcesStorage> getResourcesPaths()
getResourcesPaths
in interface MultiResourcesStorage
public java.lang.String getSeparator()
getSeparator
in interface ResourcesStorage
public boolean isEmpty()
isEmpty
in interface ResourcesStorage
public boolean isReadOnly()
isReadOnly
in interface ResourcesStorage
public ResourcesStorage.Resource getResource(java.lang.String resourceName)
getResource
in interface ResourcesStorage
public java.util.List<ResourcesStorage.Resource> getResources(java.lang.String resourceName)
getResources
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 boolean exists(java.lang.String resourceName)
exists
in interface ResourcesStorage
public java.util.List<java.lang.String> getResourceNames()
ResourcesStorage
getResourceNames
in interface ResourcesStorage
public boolean remove(java.lang.String resourceName)
remove
in interface ResourcesStorage
public boolean add(java.lang.String resourceName, java.io.InputStream is)
add
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