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:
java.io.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(java.lang.ClassLoader loader)
DefaultParser(MediaTypeRegistry registry)
DefaultParser(MediaTypeRegistry registry, java.lang.ClassLoader loader)
DefaultParser(MediaTypeRegistry registry, ServiceLoader loader)
DefaultParser(MediaTypeRegistry registry, ServiceLoader loader, java.util.Collection<java.lang.Class<? extends Parser>> excludeParsers)
DefaultParser(MediaTypeRegistry registry, ServiceLoader loader, java.util.Collection<java.lang.Class<? extends Parser>> excludeParsers, EncodingDetector encodingDetector)
DefaultParser(MediaTypeRegistry registry, ServiceLoader loader, EncodingDetector encodingDetector)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<Parser>
getAllComponentParsers()
Returns all parsers registered with the Composite Parser, including ones which may not currently be active.java.util.Map<MediaType,Parser>
getParsers(ParseContext context)
-
Methods inherited from class org.apache.tika.parser.CompositeParser
findDuplicateParsers, getFallback, getMediaTypeRegistry, 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, java.util.Collection<java.lang.Class<? extends Parser>> excludeParsers, EncodingDetector encodingDetector)
-
DefaultParser
public DefaultParser(MediaTypeRegistry registry, ServiceLoader loader, java.util.Collection<java.lang.Class<? extends Parser>> excludeParsers)
-
DefaultParser
public DefaultParser(MediaTypeRegistry registry, ServiceLoader loader, EncodingDetector encodingDetector)
-
DefaultParser
public DefaultParser(MediaTypeRegistry registry, ServiceLoader loader)
-
DefaultParser
public DefaultParser(MediaTypeRegistry registry, java.lang.ClassLoader loader)
-
DefaultParser
public DefaultParser(java.lang.ClassLoader loader)
-
DefaultParser
public DefaultParser(MediaTypeRegistry registry)
-
DefaultParser
public DefaultParser()
-
-
Method Detail
-
getParsers
public java.util.Map<MediaType,Parser> getParsers(ParseContext context)
- Overrides:
getParsers
in classCompositeParser
-
getAllComponentParsers
public java.util.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
-
-