Package 

Class ParserFactory

    • Constructor Detail

      • ParserFactory

        ParserFactory(List<Parser> availableParsers, ImmutableConfig conf)
      • ParserFactory

        ParserFactory(ImmutableConfig conf)
    • 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 the Array of Parser's for.
        url - The url for the content that may allow us to get the type from the file suffix.