org.base.apps.xml
Class ParserFactory

java.lang.Object
  extended by org.base.apps.xml.ParserFactory

public abstract class ParserFactory
extends Object

Author:
Kevan Simpson

Constructor Summary
protected ParserFactory()
          Protected void constructor.
 
Method Summary
static
<R,P extends Parser<R>>
P
newParser(Class<P> impl)
          Instantiates and (optionally) configures a Parser.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParserFactory

protected ParserFactory()
Protected void constructor.

Method Detail

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 Parser
P - 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

Please visit Base Apps, hosted on Sourceforge.net.

Copyright 2011, Blue Agate Software Entity (BASE)