|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deepfs.fsml.ParserRegistry
public final class ParserRegistry
Registry for file parsers.
| Constructor Summary | |
|---|---|
ParserRegistry()
Constructor. |
|
| Method Summary | |
|---|---|
String[][] |
availableParsers()
Returns all available parsers. |
IFileParser |
getFallbackParser()
Gets the fallback parser implementation. |
IFileParser |
getParser(String suffix)
Gets a parser implementation for given file suffix. |
static void |
register(String suffix,
Class<? extends IFileParser> c)
Registers a parser implementation with the fs parser. |
static void |
registerFallback(Class<? extends IFileParser> c)
Registers a fallback parser implementation with the fs parser. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ParserRegistry()
| Method Detail |
|---|
public static void register(String suffix,
Class<? extends IFileParser> c)
suffix - the suffix to register the parser implementation forc - the parser implementation classpublic static void registerFallback(Class<? extends IFileParser> c)
c - the parser implementation class
public IFileParser getParser(String suffix)
throws ParserException
suffix - the file suffix to get the parser for
null if no implementation
is available
ParserException - if the parser could not be loaded
public IFileParser getFallbackParser()
throws ParserException
null if no
fallback parser is available
ParserException - if the parser could not be loadedpublic String[][] availableParsers()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||