|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sourceprojects.xmlparser.XmlParserFactory
LyciaParserFactory
instead
@Deprecated public final class XmlParserFactory
Defines a factory API that enables applications to obtain instances of the
XmlParser
either by given standard
implementations or by configuring own implementations.
Field Summary | |
---|---|
static String |
STANDARD_XMLPARSER_CLASS
Deprecated. Classname for the standard XmlParser
class to be created if no special implementation is given |
Constructor Summary | |
---|---|
XmlParserFactory()
Deprecated. |
Method Summary | ||
---|---|---|
static
|
newInstance()
Deprecated. Obtain a new instance of a XmlParser
. |
|
static
|
newInstance(ClassLoader classLoader)
Deprecated. Obtain a new instance of a XmlParser
. |
|
static
|
newInstance(String parserImplementationClassname,
String contextImplementationClassname,
ClassLoader classLoader)
Deprecated. Obtain a new instance of a XmlParser
. |
|
static
|
newInstance(String parserImplementationClassname,
String contextImplementationClassname,
ClassLoader classLoader,
boolean createResourceResolver)
Deprecated. Obtain a new instance of a XmlParser
. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String STANDARD_XMLPARSER_CLASS
XmlParser
class to be created if no special implementation is given
Constructor Detail |
---|
public XmlParserFactory()
Method Detail |
---|
public static final <B> XmlParser<B> newInstance() throws XmlParserInitializationException
XmlParser
.XmlParser
and
ParserContext
are the standard
internal ones. The classloader to load up those implementations is the
actual ContextClassLoader of the actual thread.
B
- Type of output class to use in parsing and transforming
XmlParserInitializationException
- If some exception occurs on initialization of the new
instance the exception is wrapped into a
XmlParserInitializationException
public static final <B> XmlParser<B> newInstance(ClassLoader classLoader) throws XmlParserInitializationException
XmlParser
.XmlParser
and
ParserContext
are the standard
internal ones. The classloader to load up those implementations is the
given classloader.
B
- Type of output class to use in parsing and transformingclassLoader
- The classloader to load classes
XmlParserInitializationException
- If some exception occurs on initialization of the new
instance the exception is wrapped into a
XmlParserInitializationException
public static final <B> XmlParser<B> newInstance(String parserImplementationClassname, String contextImplementationClassname, ClassLoader classLoader) throws XmlParserInitializationException
XmlParser
.XmlParser
and
ParserContext
must be given as
parameters to the method. The classloader to load up those
implementations is the given classloader.XmlParserInitializationException
will be thrown if one of both
implementations is null or not found.
B
- Type of output class to use in parsing and transformingparserImplementationClassname
- Classname of the implementation used for XmlParsercontextImplementationClassname
- Classname of the implementation used for ParserContextclassLoader
- The classloader to load classes
XmlParserInitializationException
- If some exception occurs on initialization of the new
instance the exception is wrapped into a
XmlParserInitializationException
public static final <B> XmlParser<B> newInstance(String parserImplementationClassname, String contextImplementationClassname, ClassLoader classLoader, boolean createResourceResolver) throws XmlParserInitializationException
XmlParser
.XmlParser
and
ParserContext
must be given as
parameters to the method. The classloader to load up those
implementations is the given classloader.XmlParserInitializationException
will be thrown if one of both
implementations is null or not found.
B
- Type of output class to use in parsing and transformingparserImplementationClassname
- Classname of the implementation used for XmlParsercontextImplementationClassname
- Classname of the implementation used for ParserContextclassLoader
- The classloader to load classescreateResourceResolver
- Automatically create a basic ResourceResolver for the
XmlParserInitializationException
- If some exception occurs on initialization of the new
instance the exception is wrapped into a
XmlParserInitializationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |