org.apache.tika.parser.external
Class ExternalParsersConfigReader

java.lang.Object
  extended by org.apache.tika.parser.external.ExternalParsersConfigReader
All Implemented Interfaces:
ExternalParsersConfigReaderMetKeys

public final class ExternalParsersConfigReader
extends Object
implements ExternalParsersConfigReaderMetKeys

Builds up ExternalParser instances based on XML file(s) which define what to run, for what, and how to process any output metadata. Typically used to configure up a series of external programs (like catdoc or pdf2txt) to extract text content from documents.

  TODO XML DTD Here
 


Field Summary
 
Fields inherited from interface org.apache.tika.parser.external.ExternalParsersConfigReaderMetKeys
CHECK_TAG, COMMAND_TAG, ERROR_CODES_TAG, EXTERNAL_PARSERS_TAG, METADATA_KEY_ATTR, METADATA_MATCH_TAG, METADATA_TAG, MIMETYPE_TAG, MIMETYPES_TAG, PARSER_TAG
 
Constructor Summary
ExternalParsersConfigReader()
           
 
Method Summary
static List<ExternalParser> read(Document document)
           
static List<ExternalParser> read(Element element)
           
static List<ExternalParser> read(InputStream stream)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExternalParsersConfigReader

public ExternalParsersConfigReader()
Method Detail

read

public static List<ExternalParser> read(InputStream stream)
                                 throws TikaException,
                                        IOException
Throws:
TikaException
IOException

read

public static List<ExternalParser> read(Document document)
                                 throws TikaException,
                                        IOException
Throws:
TikaException
IOException

read

public static List<ExternalParser> read(Element element)
                                 throws TikaException,
                                        IOException
Throws:
TikaException
IOException


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