public class EmptyResourcesStorage extends java.lang.Object implements ResourcesStorage
Modifier and Type | Class and Description |
---|---|
static class |
EmptyResourcesStorage.EmptyResource |
ResourcesStorage.Resource
EMPTY_RESOURCESSTORAGE
Constructor and Description |
---|
EmptyResourcesStorage() |
Modifier and Type | Method and Description |
---|---|
boolean |
add(java.lang.String resourceName,
java.io.InputStream is) |
boolean |
allowRemove() |
void |
clearCache() |
void |
dispose()
Disposes the current object, to allow it to close and dispose any used
resources.
|
boolean |
exists(java.lang.String name) |
ResourcesStorage.Resource |
getLocalizedResource(java.lang.String resourceName) |
java.util.List<ResourcesStorage.Resource> |
getLocalizedResources(java.lang.String resourceName) |
ResourcesStorage.Resource |
getResource(java.lang.String name) |
java.util.List<java.lang.String> |
getResourceNames()
Return the resource names in this store.
|
java.util.List<ResourcesStorage.Resource> |
getResources(java.lang.String name) |
java.lang.String |
getSeparator() |
boolean |
isEmpty() |
boolean |
isReadOnly() |
boolean |
remove(java.lang.String resourceName) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createBytesResource, createFilesResourcesStorage, createFilesResourcesStorage, createMultiResourcesStorage, createResource, createResource, isEmpty
public ResourcesStorage.Resource getResource(java.lang.String name)
getResource
in interface ResourcesStorage
public boolean isReadOnly()
isReadOnly
in interface ResourcesStorage
public java.lang.String getSeparator()
getSeparator
in interface ResourcesStorage
public java.util.List<ResourcesStorage.Resource> getResources(java.lang.String name)
getResources
in interface ResourcesStorage
public boolean isEmpty()
isEmpty
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 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 void dispose()
Disposable
NOTE:After calling this method, the object may not be usable anymore.
dispose
in interface Disposable
public void clearCache()
clearCache
in interface ResourcesStorage