public class BundleView extends BaseView
DEFAULT_VIEW_KEY, TYPE_KEY, VISIBLE_FALSE, VISIBLE_KEY, VISIBLE_STUDIO_ONLY| Constructor and Description |
|---|
BundleView(String resource,
String key,
JahiaTemplatesPackage module,
String displayName)
Initializes an instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
org.osgi.framework.Bundle |
getBundle() |
BundleSourceResourceResolver |
getBundleSourceResourceResolver() |
InputStream |
getInputStream()
Returns an input stream for the view resource or null if the resource does not exist.
|
protected InputStream |
getInputStream(String resource)
Returns an input stream for the specified resource or null if the resource does not exist.
|
String |
getPath() |
String |
getResource() |
protected URL |
getResource(String resource) |
protected String |
getResourcePath(String resource)
Obtains the path for the specified resource which can be used to read it using corresponding script, e.g.
|
int |
hashCode() |
compareTo, getDefaultProperties, getDisplayName, getFileExtension, getInfo, getKey, getModule, getModuleVersion, getProperties, loadProperties, setDefaultProperties, setProperties, toStringpublic BundleView(String resource, String key, JahiaTemplatesPackage module, String displayName)
resource - the resource path in the underlying OSGi bundlekey - the key of the viewmodule - corresponding JahiaTemplatesPackage instancedisplayName - the display name for this viewpublic String getPath()
public org.osgi.framework.Bundle getBundle()
public BundleSourceResourceResolver getBundleSourceResourceResolver()
public InputStream getInputStream() throws IOException
IOException - in case of an I/O errorsprotected InputStream getInputStream(String resource) throws IOException
BaseViewgetInputStream in class BaseViewresource - the resource path to obtain input stream forIOException - in case of an I/O errorspublic String getResource()
protected URL getResource(String resource)
getResource in class BaseViewprotected String getResourcePath(String resource)
BaseViewnull.getResourcePath in class BaseViewresource - the resource to get the path fornullCopyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.