public class TikaConfig extends Object
Constructor and Description |
---|
TikaConfig() |
TikaConfig(Document document) |
TikaConfig(Document document,
org.apache.tika.parser.Parser delegate)
Deprecated.
This method will be removed in Apache Tika 1.0
|
TikaConfig(Element element) |
TikaConfig(Element element,
org.apache.tika.parser.Parser delegate)
Deprecated.
This method will be removed in Apache Tika 1.0
|
TikaConfig(File file) |
TikaConfig(InputStream stream) |
TikaConfig(InputStream stream,
org.apache.tika.parser.Parser delegate)
Deprecated.
This method will be removed in Apache Tika 1.0
|
TikaConfig(String file) |
TikaConfig(URL url) |
Modifier and Type | Method and Description |
---|---|
static TikaConfig |
getDefaultConfig()
Provides a default configuration (TikaConfig).
|
static TikaConfig |
getDefaultConfig(org.apache.tika.parser.Parser delegate)
Deprecated.
This method will be removed in Apache Tika 1.0
|
org.apache.tika.mime.MimeTypes |
getMimeRepository() |
org.apache.tika.parser.Parser |
getParser(String mimeType)
Returns the parser instance configured for the given MIME type.
|
Map<String,org.apache.tika.parser.Parser> |
getParsers() |
public TikaConfig(String file) throws org.apache.tika.exception.TikaException, IOException, SAXException
org.apache.tika.exception.TikaException
IOException
SAXException
public TikaConfig(File file) throws org.apache.tika.exception.TikaException, IOException, SAXException
org.apache.tika.exception.TikaException
IOException
SAXException
public TikaConfig(URL url) throws org.apache.tika.exception.TikaException, IOException, SAXException
org.apache.tika.exception.TikaException
IOException
SAXException
public TikaConfig(InputStream stream) throws org.apache.tika.exception.TikaException, IOException, SAXException
org.apache.tika.exception.TikaException
IOException
SAXException
public TikaConfig(InputStream stream, org.apache.tika.parser.Parser delegate) throws org.apache.tika.exception.TikaException, IOException, SAXException
org.apache.tika.exception.TikaException
IOException
SAXException
public TikaConfig(Document document) throws org.apache.tika.exception.TikaException, IOException
org.apache.tika.exception.TikaException
IOException
public TikaConfig(Document document, org.apache.tika.parser.Parser delegate) throws org.apache.tika.exception.TikaException, IOException
org.apache.tika.exception.TikaException
IOException
public TikaConfig(Element element) throws org.apache.tika.exception.TikaException, IOException
org.apache.tika.exception.TikaException
IOException
public TikaConfig() throws org.apache.tika.mime.MimeTypeException, IOException
org.apache.tika.mime.MimeTypeException
IOException
public TikaConfig(Element element, org.apache.tika.parser.Parser delegate) throws org.apache.tika.exception.TikaException, IOException
org.apache.tika.exception.TikaException
IOException
public org.apache.tika.parser.Parser getParser(String mimeType)
null
if the given MIME type is unknown.mimeType
- MIME typenull
public org.apache.tika.mime.MimeTypes getMimeRepository()
public static TikaConfig getDefaultConfig()
public static TikaConfig getDefaultConfig(org.apache.tika.parser.Parser delegate) throws org.apache.tika.exception.TikaException
org.apache.tika.exception.TikaException
Copyright © 2015 The Apache Software Foundation