T - The class which the parsers generate.public class AbstractParsers<T> extends java.lang.Object implements Parsers<T>
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractParsers(java.lang.Class<T> clazz)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
Parser<T> |
getParser(java.lang.String format)
Get a parser for a specific format
|
java.util.Set<java.lang.String> |
getSupportedFormats()
Get all format names for which parsers are known
|
protected AbstractParsers(java.lang.Class<T> clazz)
clazz - Class object of the which the parsers should generatepublic Parser<T> getParser(java.lang.String format) throws ParserNotFoundException
ParsersgetParser in interface Parsers<T>format - The name of the format, which the parser should parseParserNotFoundException - If no parser for the given format is known.public java.util.Set<java.lang.String> getSupportedFormats()
ParsersgetSupportedFormats in interface Parsers<T>