|
||||||||||
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.
Constructor Summary | |
---|---|
TikaConfig()
Creates a Tika configuration from the built-in media type rules and all the Parser implementations available through the
service provider mechanism in the context
class loader of the current thread. |
|
TikaConfig(java.lang.ClassLoader loader)
Creates a Tika configuration from the built-in media type rules and all the Parser implementations available through the
service provider mechanism in the given
class loader. |
|
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 |
MediaTypeRegistry |
getMediaTypeRegistry()
|
MimeTypes |
getMimeRepository()
|
Parser |
getParser()
Returns the configured parser instance. |
Parser |
getParser(MediaType mimeType)
Deprecated. Use the getParser() method instead |
java.util.Map<MediaType,Parser> |
getParsers()
Deprecated. Use the getParser() method instead |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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(java.lang.ClassLoader loader) throws MimeTypeException, java.io.IOException
Parser
implementations available through the
service provider mechanism
in the given
class loader.
loader
- the class loader through which parser implementations
are loaded, or null
for no parsers
MimeTypeException
- if the built-in media type rules are broken
java.io.IOException
- if the built-in media type rules can not be readpublic TikaConfig() throws MimeTypeException, java.io.IOException
Parser
implementations available through the
service provider mechanism
in the context
class loader of the current thread.
MimeTypeException
- if the built-in media type rules are broken
java.io.IOException
- if the built-in media type rules can not be readpublic TikaConfig(org.w3c.dom.Element element, Parser delegate) throws TikaException, java.io.IOException
TikaException
java.io.IOException
Method Detail |
---|
public Parser getParser(MediaType mimeType)
getParser()
method instead
public Parser getParser()
public java.util.Map<MediaType,Parser> getParsers()
getParser()
method instead
public MimeTypes getMimeRepository()
public MediaTypeRegistry getMediaTypeRegistry()
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 |