public class CompoundResourcesStorage extends AbstractDisposable implements ResourcesStorage, java.lang.Iterable<ResourcesStorage>
ResourcesStorage.Resource
Modifier and Type | Field and Description |
---|---|
protected static Logger |
LOGGER |
EMPTY_RESOURCESSTORAGE
Constructor and Description |
---|
CompoundResourcesStorage(ResourcesStorage... storages) |
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.lang.String |
getSeparator() |
boolean |
isEmpty() |
boolean |
isReadOnly() |
java.util.Iterator<ResourcesStorage> |
iterator() |
boolean |
remove(java.lang.String resourceName) |
java.lang.String |
toString() |
dispose, dispose
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
createBytesResource, createFilesResourcesStorage, createFilesResourcesStorage, createMultiResourcesStorage, createResource, createResource, isEmpty
dispose
public CompoundResourcesStorage(ResourcesStorage... storages)
public java.lang.String getSeparator()
getSeparator
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 isEmpty()
isEmpty
in interface ResourcesStorage
public boolean isReadOnly()
isReadOnly
in interface ResourcesStorage
public boolean exists(java.lang.String resourceName)
exists
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
public java.util.List<java.lang.String> getResourceNames()
ResourcesStorage
getResourceNames
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
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.Iterator<ResourcesStorage> iterator()
iterator
in interface java.lang.Iterable<ResourcesStorage>