Package net.n3.nanoxml
Class XMLParserFactory
java.lang.Object
net.n3.nanoxml.XMLParserFactory
Creates an XML parser.
- Version:
- $Name: RELEASE_2_2_1 $, $Revision: 1.3 $
- Author:
- Marc De Scheemaecker
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic IXMLParser
Creates a default parser.static IXMLParser
createDefaultXMLParser
(IXMLBuilder builder) Creates a default parser.static IXMLParser
createXMLParser
(String className, IXMLBuilder builder) Creates a parser.
-
Field Details
-
DEFAULT_CLASS
The class name of the default XML parser.- See Also:
-
CLASS_KEY
The Java properties key of the XML parser class name.- See Also:
-
-
Constructor Details
-
XMLParserFactory
public XMLParserFactory()
-
-
Method Details
-
createDefaultXMLParser
public static IXMLParser createDefaultXMLParser() throws ClassNotFoundException, InstantiationException, IllegalAccessExceptionCreates a default parser.- Returns:
- the non-null parser.
- Throws:
ClassNotFoundException
- if the class of the parser or validator could not be found.InstantiationException
- if the parser could not be createdIllegalAccessException
- if the parser could not be created- See Also:
-
createDefaultXMLParser
public static IXMLParser createDefaultXMLParser(IXMLBuilder builder) throws ClassNotFoundException, InstantiationException, IllegalAccessException Creates a default parser.- Parameters:
builder
- the XML builder.- Returns:
- the non-null parser.
- Throws:
ClassNotFoundException
- if the class of the parser could not be found.InstantiationException
- if the parser could not be createdIllegalAccessException
- if the parser could not be created- See Also:
-
createXMLParser
public static IXMLParser createXMLParser(String className, IXMLBuilder builder) throws ClassNotFoundException, InstantiationException, IllegalAccessException Creates a parser.- Parameters:
className
- the name of the class of the XML parserbuilder
- the XML builder.- Returns:
- the non-null parser.
- Throws:
ClassNotFoundException
- if the class of the parser could not be found.InstantiationException
- if the parser could not be createdIllegalAccessException
- if the parser could not be created
-