org.apache.droids.helper.factories
Class ParserFactory
java.lang.Object
org.apache.droids.helper.factories.GenericFactory<Parser>
org.apache.droids.helper.factories.ParserFactory
public class ParserFactory
- extends GenericFactory<Parser>
Factory that will lookup a parser by its identifier and return it.
Method Summary |
Parser |
getParser(String contentType)
Lookup a parser by its identifier (content type) and return it. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ParserFactory
public ParserFactory()
getParser
public Parser getParser(String contentType)
throws DroidsException
- Lookup a parser by its identifier (content type) and return it.
- Parameters:
contentType
- for which content type we need a parser
- Returns:
- null if we do not find a registered Parser otherwise the Parser
- Throws:
DroidsException
Copyright © 2008 The Apache Software Foundation