public class PrivateAsset extends AbstractAsset
IAssetfor localizable assets within the JVM's
classpath.
The localization code here is largely cut-and-paste from ContextAsset.
| Constructor and Description |
|---|
PrivateAsset(org.apache.hivemind.util.ClasspathResource resourceLocation,
IEngineService assetService,
org.apache.hivemind.Location location) |
PrivateAsset(org.apache.hivemind.util.ClasspathResource resourceLocation,
org.apache.hivemind.Location location)
Deprecated.
To be removed (someday). Use
PrivateAsset(ClasspathResource, IEngineService, Location) instead. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
buildURL()
Gets the localized version of the resource.
|
java.io.InputStream |
getResourceAsStream()
Accesses the localized version of the resource (if possible) and returns it as an input
stream.
|
getLocation, getResourceLocation, toStringpublic PrivateAsset(org.apache.hivemind.util.ClasspathResource resourceLocation, org.apache.hivemind.Location location)
PrivateAsset(ClasspathResource, IEngineService, Location) instead.public PrivateAsset(org.apache.hivemind.util.ClasspathResource resourceLocation, IEngineService assetService, org.apache.hivemind.Location location)
public java.lang.String buildURL()
AssetExternalizerImplis located, to copy the resource to a directory
visible to the web server.public java.io.InputStream getResourceAsStream()
IAssetpageis returned.