public interface ResourcesStorage extends Disposable
Modifier and Type | Interface and Description |
---|---|
static interface |
ResourcesStorage.Resource |
Modifier and Type | Field and Description |
---|---|
static ResourcesStorage |
EMPTY_RESOURCESSTORAGE |
Modifier and Type | Method and Description |
---|---|
boolean |
add(java.lang.String resourceName,
java.io.InputStream is) |
boolean |
allowRemove() |
void |
clearCache() |
static BytesResource |
createBytesResource(byte[] bytes) |
static ResourcesStorage |
createFilesResourcesStorage(java.util.List<java.lang.String> fulllPathNames) |
static ResourcesStorage |
createFilesResourcesStorage(java.lang.String pathName) |
static MultiResourcesStorage |
createMultiResourcesStorage() |
static ResourcesStorage.Resource |
createResource(java.lang.String name,
java.net.URI uri) |
static ResourcesStorage.Resource |
createResource(java.lang.String name,
java.net.URL url) |
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() |
static boolean |
isEmpty(ResourcesStorage res) |
boolean |
isReadOnly() |
boolean |
remove(java.lang.String resourceName) |
dispose
static final ResourcesStorage EMPTY_RESOURCESSTORAGE
static boolean isEmpty(ResourcesStorage res)
static ResourcesStorage createFilesResourcesStorage(java.lang.String pathName)
static ResourcesStorage createFilesResourcesStorage(java.util.List<java.lang.String> fulllPathNames)
static MultiResourcesStorage createMultiResourcesStorage()
static BytesResource createBytesResource(byte[] bytes)
static ResourcesStorage.Resource createResource(java.lang.String name, java.net.URL url)
static ResourcesStorage.Resource createResource(java.lang.String name, java.net.URI uri)
java.lang.String getSeparator()
ResourcesStorage.Resource getResource(java.lang.String resourceName)
java.util.List<ResourcesStorage.Resource> getResources(java.lang.String resourceName)
ResourcesStorage.Resource getLocalizedResource(java.lang.String resourceName)
java.util.List<ResourcesStorage.Resource> getLocalizedResources(java.lang.String resourceName)
boolean isEmpty()
boolean isReadOnly()
boolean exists(java.lang.String resourceName)
boolean add(java.lang.String resourceName, java.io.InputStream is)
boolean remove(java.lang.String resourceName)
boolean allowRemove()
java.util.List<java.lang.String> getResourceNames()
void clearCache()