Package org.apache.tika.parser
Class DefaultParser
- java.lang.Object
-
- org.apache.tika.parser.AbstractParser
-
- org.apache.tika.parser.CompositeParser
-
- org.apache.tika.parser.DefaultParser
-
- All Implemented Interfaces:
Serializable
,Parser
public class DefaultParser extends CompositeParser
A composite parser based on all theParser
implementations available through theservice provider mechanism
.- Since:
- Apache Tika 0.8
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DefaultParser()
DefaultParser(ClassLoader loader)
DefaultParser(MediaTypeRegistry registry)
DefaultParser(MediaTypeRegistry registry, ClassLoader loader)
DefaultParser(MediaTypeRegistry registry, ServiceLoader loader)
DefaultParser(MediaTypeRegistry registry, ServiceLoader loader, Collection<Class<? extends Parser>> excludeParsers)
DefaultParser(MediaTypeRegistry registry, ServiceLoader loader, Collection<Class<? extends Parser>> excludeParsers, EncodingDetector encodingDetector, Renderer renderer)
DefaultParser(MediaTypeRegistry registry, ServiceLoader loader, EncodingDetector encodingDetector, Renderer renderer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Parser>
getAllComponentParsers()
Returns all parsers registered with the Composite Parser, including ones which may not currently be active.Map<MediaType,Parser>
getParsers(ParseContext context)
-
Methods inherited from class org.apache.tika.parser.CompositeParser
findDuplicateParsers, getFallback, getMediaTypeRegistry, getParser, getParser, getParsers, getSupportedTypes, parse, setFallback, setMediaTypeRegistry, setParsers
-
Methods inherited from class org.apache.tika.parser.AbstractParser
parse
-
-
-
-
Constructor Detail
-
DefaultParser
public DefaultParser(MediaTypeRegistry registry, ServiceLoader loader, Collection<Class<? extends Parser>> excludeParsers, EncodingDetector encodingDetector, Renderer renderer)
-
DefaultParser
public DefaultParser(MediaTypeRegistry registry, ServiceLoader loader, Collection<Class<? extends Parser>> excludeParsers)
-
DefaultParser
public DefaultParser(MediaTypeRegistry registry, ServiceLoader loader, EncodingDetector encodingDetector, Renderer renderer)
-
DefaultParser
public DefaultParser(MediaTypeRegistry registry, ServiceLoader loader)
-
DefaultParser
public DefaultParser(MediaTypeRegistry registry, ClassLoader loader)
-
DefaultParser
public DefaultParser(ClassLoader loader)
-
DefaultParser
public DefaultParser(MediaTypeRegistry registry)
-
DefaultParser
public DefaultParser()
-
-
Method Detail
-
getParsers
public Map<MediaType,Parser> getParsers(ParseContext context)
- Overrides:
getParsers
in classCompositeParser
-
getAllComponentParsers
public List<Parser> getAllComponentParsers()
Description copied from class:CompositeParser
Returns all parsers registered with the Composite Parser, including ones which may not currently be active. This won't include the Fallback Parser, if defined- Overrides:
getAllComponentParsers
in classCompositeParser
-
-