|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tika.config.TikaConfig
public class TikaConfig
Parse xml config file.
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_CONFIG_LOCATION
|
Constructor Summary | |
---|---|
TikaConfig(org.w3c.dom.Document document)
|
|
TikaConfig(org.w3c.dom.Document document,
Parser delegate)
Deprecated. This method will be removed in Apache Tika 1.0 |
|
TikaConfig(org.w3c.dom.Element element)
|
|
TikaConfig(org.w3c.dom.Element element,
Parser delegate)
Deprecated. This method will be removed in Apache Tika 1.0 |
|
TikaConfig(java.io.File file)
|
|
TikaConfig(java.io.InputStream stream)
|
|
TikaConfig(java.io.InputStream stream,
Parser delegate)
Deprecated. This method will be removed in Apache Tika 1.0 |
|
TikaConfig(java.lang.String file)
|
|
TikaConfig(java.net.URL url)
|
Method Summary | |
---|---|
static TikaConfig |
getDefaultConfig()
Provides a default configuration (TikaConfig). |
static TikaConfig |
getDefaultConfig(Parser delegate)
Deprecated. This method will be removed in Apache Tika 1.0 |
MimeTypes |
getMimeRepository()
|
Parser |
getParser(java.lang.String mimeType)
Returns the parser instance configured for the given MIME type. |
java.util.Map<java.lang.String,Parser> |
getParsers()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String DEFAULT_CONFIG_LOCATION
Constructor Detail |
---|
public TikaConfig(java.lang.String file) throws TikaException, java.io.IOException, org.xml.sax.SAXException
TikaException
java.io.IOException
org.xml.sax.SAXException
public TikaConfig(java.io.File file) throws TikaException, java.io.IOException, org.xml.sax.SAXException
TikaException
java.io.IOException
org.xml.sax.SAXException
public TikaConfig(java.net.URL url) throws TikaException, java.io.IOException, org.xml.sax.SAXException
TikaException
java.io.IOException
org.xml.sax.SAXException
public TikaConfig(java.io.InputStream stream) throws TikaException, java.io.IOException, org.xml.sax.SAXException
TikaException
java.io.IOException
org.xml.sax.SAXException
public TikaConfig(java.io.InputStream stream, Parser delegate) throws TikaException, java.io.IOException, org.xml.sax.SAXException
TikaException
java.io.IOException
org.xml.sax.SAXException
public TikaConfig(org.w3c.dom.Document document) throws TikaException, java.io.IOException
TikaException
java.io.IOException
public TikaConfig(org.w3c.dom.Document document, Parser delegate) throws TikaException, java.io.IOException
TikaException
java.io.IOException
public TikaConfig(org.w3c.dom.Element element) throws TikaException, java.io.IOException
TikaException
java.io.IOException
public TikaConfig(org.w3c.dom.Element element, Parser delegate) throws TikaException, java.io.IOException
TikaException
java.io.IOException
Method Detail |
---|
public Parser getParser(java.lang.String mimeType)
null
if the given MIME type is unknown.
mimeType
- MIME type
null
public java.util.Map<java.lang.String,Parser> getParsers()
public MimeTypes getMimeRepository()
public static TikaConfig getDefaultConfig()
public static TikaConfig getDefaultConfig(Parser delegate) throws TikaException
TikaException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |