public class StyleSheetLoader
extends java.lang.Object
StyleSheet instance.| Constructor and Description |
|---|
StyleSheetLoader() |
| Modifier and Type | Method and Description |
|---|---|
static StyleSheet |
load(java.io.InputStream in,
java.lang.ClassLoader classLoader)
Parses an XML style sheet and returns a
StyleSheet
instance. |
static StyleSheet |
load(java.lang.String resourceName,
java.lang.ClassLoader classLoader)
Parses an XML style sheet and returns a
StyleSheet
instance. |
public static StyleSheet load(java.lang.String resourceName, java.lang.ClassLoader classLoader) throws SerialException
StyleSheet
instance.
Styles for components that cannot be loaded by the specified
ClassLoader will be ignored.
resourceName - the name of the resource on the
CLASSPATH containing the XML dataclassLoader - the ClassLoader with which to
instantiate property objectsStyleSheet or null if the resource
does not existComponentXmlException - if parsing/instantiation errors occurSerialExceptionpublic static StyleSheet load(java.io.InputStream in, java.lang.ClassLoader classLoader) throws SerialException
StyleSheet
instance.
Styles for components that cannot be loaded by the specified
ClassLoader will be ignored.
in - the InputStream containing the XML dataclassLoader - the ClassLoader with which to
instantiate property objectsStyleSheetComponentXmlException - if parsing/instantiation errors occurSerialException