public class ZipResourceBundleLoader extends Object implements ResourceBundleLoader
Constructor and Description |
---|
ZipResourceBundleLoader() |
Modifier and Type | Method and Description |
---|---|
ResourceKey |
deriveKey(ResourceKey parent,
String path,
Map<? extends ParameterKey,? extends Object> factoryKeys)
Derives a new resource key from the given key.
|
ResourceKey |
deserialize(ResourceKey bundleKey,
String stringKey) |
boolean |
equals(Object obj) |
int |
hashCode() |
boolean |
isSupportedDeserializer(String data) |
boolean |
isSupportedKey(ResourceKey key)
Checks, whether this resource loader implementation was responsible for creating this key.
|
ResourceBundleData |
loadBundle(ResourceManager resourceManager,
ResourceKey key)
Tries to load the bundle.
|
String |
serialize(ResourceKey bundleKey,
ResourceKey key) |
public ResourceBundleData loadBundle(ResourceManager resourceManager, ResourceKey key) throws ResourceLoadingException
loadBundle
in interface ResourceBundleLoader
key
- the resource key pointing to the bundle.ResourceLoadingException
- if something goes wrong.public boolean isSupportedKey(ResourceKey key)
isSupportedKey
in interface ResourceBundleLoader
key
- the key that should be tested.public ResourceKey deriveKey(ResourceKey parent, String path, Map<? extends ParameterKey,? extends Object> factoryKeys) throws ResourceKeyCreationException
deriveKey
in interface ResourceBundleLoader
parent
- the parentpath
- the derived path (can be null).factoryKeys
- the optional factory keys (can be null).ResourceKeyCreationException
- if the key cannot be derived for any reason.public String serialize(ResourceKey bundleKey, ResourceKey key) throws ResourceException
serialize
in interface ResourceBundleLoader
ResourceException
public ResourceKey deserialize(ResourceKey bundleKey, String stringKey) throws ResourceKeyCreationException
deserialize
in interface ResourceBundleLoader
ResourceKeyCreationException
public boolean isSupportedDeserializer(String data) throws ResourceKeyCreationException
isSupportedDeserializer
in interface ResourceBundleLoader
ResourceKeyCreationException
Copyright © 2017 Hitachi Vantara. All rights reserved.