org.base.apps.xml
Class ParserFactory
java.lang.Object
org.base.apps.xml.ParserFactory
public abstract class ParserFactory
- extends Object
- Author:
- Kevan Simpson
|
Constructor Summary |
protected |
ParserFactory()
Protected void constructor. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ParserFactory
protected ParserFactory()
- Protected void constructor.
newParser
public static <R,P extends Parser<R>> P newParser(Class<P> impl)
throws Exception
- Instantiates and (optionally) configures a
Parser.
- Type Parameters:
R - The generic representing the return type of the ParserP - The generic representing the Parser type- Parameters:
impl - The Parser type
- Returns:
- A new
Parser or null
- Throws:
Exception - if an error occurs creating the Parser
Copyright 2011, Blue Agate Software Entity (BASE)