-
public final class ParserFactoryCreates Parser.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classParserFactory.Companion
-
Constructor Summary
Constructors Constructor Description ParserFactory(ImmutableConfig conf)ParserFactory(List<Parser> availableParsers, ImmutableConfig conf)ParserFactory(ParserConfig parserConfig, List<Parser> availableParsers)ParserFactory(Map<String, List<Parser>> parses)
-
Method Summary
-
-
Method Detail
-
getParsers
final List<Parser> getParsers(String contentType, String url)
Function returns an array of Parsers for a given content type.
The function consults the internal list of parse plugins for the ParserFactory to determine the list of pluginIds, then gets the appropriate extension points to instantiate as Parsers.
The function is thread safe
- Parameters:
contentType- The contentType to return theArrayof Parser's for.url- The url for the content that may allow us to get the type from the file suffix.
-
-
-
-