public class DigesterLoader extends Object
| Constructor and Description |
|---|
DigesterLoader() |
| Modifier and Type | Method and Description |
|---|---|
static Digester |
createDigester(InputSource rulesSource)
Creates a new digester and initializes it from the specified InputSource
|
static Digester |
createDigester(InputSource rulesSource,
Digester rulesDigester)
Creates a new digester and initializes it from the specified InputSource.
|
static Digester |
createDigester(URL rulesXml)
Creates a new digester and initializes it from the specified XML file
|
static Digester |
createDigester(URL rulesXml,
Digester rulesDigester)
Creates a new digester and initializes it from the specified XML file.
|
static Object |
load(URL digesterRules,
ClassLoader classLoader,
InputStream input)
Given the digester rules XML file, a class loader, and an input stream,
this method parses the input into Java objects.
|
static Object |
load(URL digesterRules,
ClassLoader classLoader,
InputStream input,
Object rootObject)
Given the digester rules XML file, a class loader, and an input stream,
this method parses the input into Java objects.
|
static Object |
load(URL digesterRules,
ClassLoader classLoader,
Reader reader)
Given the digester rules XML file, a class loader, and an input stream,
this method parses the input into Java objects.
|
static Object |
load(URL digesterRules,
ClassLoader classLoader,
Reader input,
Object rootObject)
Given the digester rules XML file, a class loader, and an input stream,
this method parses the input into Java objects.
|
static Object |
load(URL digesterRules,
ClassLoader classLoader,
URL fileURL)
Given the digester rules XML file, a class loader, and an XML input file,
this method parses the input file into Java objects.
|
static Object |
load(URL digesterRules,
ClassLoader classLoader,
URL fileURL,
Object rootObject)
Given the digester rules XML file, a class loader, and an XML input file,
this method parses the input file into Java objects.
|
public static Digester createDigester(InputSource rulesSource)
rulesSource - load the xml rules from this InputSourcepublic static Digester createDigester(InputSource rulesSource, Digester rulesDigester)
rulesSource - load the xml rules from this InputSourcerulesDigester - digester to load the specified XML file.public static Digester createDigester(URL rulesXml)
rulesXml - URL to the XML file defining the digester rulespublic static Digester createDigester(URL rulesXml, Digester rulesDigester)
rulesXml - URL to the XML file defining the digester rulesrulesDigester - digester to load the specified XML file.public static Object load(URL digesterRules, ClassLoader classLoader, URL fileURL) throws IOException, SAXException, DigesterLoadingException
digesterRules - URL to the XML document defining the digester rulesclassLoader - the ClassLoader to register with the digesterfileURL - URL to the XML file to parse into Java objectsIOExceptionSAXExceptionDigesterLoadingExceptionpublic static Object load(URL digesterRules, ClassLoader classLoader, InputStream input) throws IOException, SAXException, DigesterLoadingException
digesterRules - URL to the XML document defining the digester rulesclassLoader - the ClassLoader to register with the digesterinput - InputStream over the XML file to parse into Java objectsIOExceptionSAXExceptionDigesterLoadingExceptionpublic static Object load(URL digesterRules, ClassLoader classLoader, Reader reader) throws IOException, SAXException, DigesterLoadingException
digesterRules - URL to the XML document defining the digester rulesclassLoader - the ClassLoader to register with the digesterreader - Reader over the XML file to parse into Java objectsIOExceptionSAXExceptionDigesterLoadingExceptionpublic static Object load(URL digesterRules, ClassLoader classLoader, URL fileURL, Object rootObject) throws IOException, SAXException, DigesterLoadingException
digesterRules - URL to the XML document defining the digester rulesclassLoader - the ClassLoader to register with the digesterfileURL - URL to the XML file to parse into Java objectsrootObject - an Object to push onto the digester's stack, prior
to parsing the inputIOExceptionSAXExceptionDigesterLoadingExceptionpublic static Object load(URL digesterRules, ClassLoader classLoader, InputStream input, Object rootObject) throws IOException, SAXException, DigesterLoadingException
digesterRules - URL to the XML document defining the digester rulesclassLoader - the ClassLoader to register with the digesterinput - InputStream over the XML file to parse into Java objectsrootObject - an Object to push onto the digester's stack, prior
to parsing the inputIOExceptionSAXExceptionDigesterLoadingExceptionpublic static Object load(URL digesterRules, ClassLoader classLoader, Reader input, Object rootObject) throws IOException, SAXException, DigesterLoadingException
digesterRules - URL to the XML document defining the digester rulesclassLoader - the ClassLoader to register with the digesterinput - Reader over the XML file to parse into Java objectsrootObject - an Object to push onto the digester's stack, prior
to parsing the inputIOExceptionSAXExceptionDigesterLoadingExceptionCopyright © 2001–2021 The Apache Software Foundation. All rights reserved.