public interface Resources extends Closeable
Application
s multiple Resource
s.Resource
,
Application
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
dumpToCache(ResourceType... types)
Writes all
Resource s 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
Resource s of the given ResourceType . |
Set<Resource> getResources(ResourceType type)
Resource
s of the given ResourceType
.type
- the ResourceTypeResource
s of the given ResourceType
void dumpToCache(ResourceType... types)
Resource
s 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 Resource
fileName
- the name of the Resource
Resource
, or null
if no such Resource
exists.Set<Resource> getResources()
Resource
Resource
sApplicationInfo getApplicationInfo()
ApplicationInfo
void close() throws IOException
close
in interface AutoCloseable
close
in interface Closeable
IOException
Copyright © 2011–2023 aiticon GmbH. All rights reserved.