Package org.apache.tika.parser
Class DefaultParser
java.lang.Object
org.apache.tika.parser.CompositeParser
org.apache.tika.parser.DefaultParser
- All Implemented Interfaces:
Serializable
,Parser
A composite parser based on all the
Parser
implementations
available through the
service provider mechanism
.- Since:
- Apache Tika 0.8
- See Also:
-
Constructor Summary
ConstructorDescriptionDefaultParser
(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
Modifier and TypeMethodDescriptionReturns all parsers registered with the Composite Parser, including ones which may not currently be active.getParsers
(ParseContext context) Methods inherited from class org.apache.tika.parser.CompositeParser
findDuplicateParsers, getFallback, getMediaTypeRegistry, getParser, getParser, getParsers, getSupportedTypes, parse, setFallback, setMediaTypeRegistry, setParsers
-
Constructor Details
-
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
-
DefaultParser
-
DefaultParser
-
DefaultParser
-
DefaultParser
public DefaultParser()
-
-
Method Details
-
getParsers
- Overrides:
getParsers
in classCompositeParser
-
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
-