public interface Resources extends Closeable
Applications multiple Resources.Resource,
Application| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
dumpToCache(ResourceType... types)
Writes all
Resources to the local caching location. |
ApplicationInfo |
getApplicationInfo()
|
Resource |
getResource(Integer id)
Returns the
Resource with the given ID. |
Resource |
getResource(ResourceType type,
String fileName)
Returns the
Resource of the given type with the given name, if any. |
Set<Resource> |
getResources()
Returns the underlying
Resource |
Set<Resource> |
getResources(ResourceType type)
Returns all
Resources of the given ResourceType. |
Set<Resource> getResources(ResourceType type)
Resources of the given ResourceType.type - the ResourceTypeResources of the given ResourceTypevoid dumpToCache(ResourceType... types)
Resources to the local caching location.types - the types to write the cachefiles forResource.getCachedFile()Resource getResource(ResourceType type, String fileName)
Resource of the given type with the given name, if any.type - the ResourceType of the ResourcefileName - the name of the ResourceResource, or null if no such Resource exists.Set<Resource> getResources()
ResourceResourcesApplicationInfo getApplicationInfo()
ApplicationInfovoid close()
throws IOException
close in interface AutoCloseableclose in interface CloseableIOExceptionCopyright © 2011–2020 aiticon GmbH. All rights reserved.