public abstract class AbstractParserFactory
extends java.lang.Object
Constructor and Description |
---|
AbstractParserFactory()
Creates a new AbstractParserFactory instance
|
Modifier and Type | Method and Description |
---|---|
IParser |
createInputParserThroughExtension(java.lang.String fileExtension)
Looks if there's any input format whose files correspond to the extension given and returns an input format which parses that format
|
IParser |
createParser(java.lang.String formatName)
Creates a IParser instance according to the given format
|
static IParsersInfo |
getParserInfo()
Return general information about available parsers
|
public AbstractParserFactory()
public static final IParsersInfo getParserInfo()
public final IParser createParser(java.lang.String formatName) throws PlinguaCoreException
className
- the format name of the parser to createPlinguaCoreException
- if the format is not supportedpublic IParser createInputParserThroughExtension(java.lang.String fileExtension) throws PlinguaCoreException
fileExtension
- the extension which input format class name should be returnedPlinguaCoreException
- if there's no recognized input parser for the extension given