org.apache.tika.parser
Class DefaultParser

java.lang.Object
  extended by org.apache.tika.parser.AbstractParser
      extended by org.apache.tika.parser.CompositeParser
          extended by org.apache.tika.parser.DefaultParser
All Implemented Interfaces:
Serializable, Parser

public class DefaultParser
extends CompositeParser

A composite parser based on all the Parser implementations available through the service provider mechanism.

Since:
Apache Tika 0.8
See Also:
Serialized Form

Constructor Summary
DefaultParser()
           
DefaultParser(ClassLoader loader)
           
DefaultParser(MediaTypeRegistry registry)
           
DefaultParser(MediaTypeRegistry registry, ClassLoader loader)
           
DefaultParser(MediaTypeRegistry registry, ServiceLoader loader)
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 class CompositeParser


Copyright © 2007-2012 The Apache Software Foundation. All Rights Reserved.