|
||||||||||
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 String |
DEFAULT_CONFIG_LOCATION
|
Constructor Summary | |
---|---|
TikaConfig(Document document)
|
|
TikaConfig(Document document,
Parser delegate)
Deprecated. This method will be removed in Apache Tika 1.0 |
|
TikaConfig(Element element)
|
|
TikaConfig(Element element,
Parser delegate)
Deprecated. This method will be removed in Apache Tika 1.0 |
|
TikaConfig(File file)
|
|
TikaConfig(InputStream stream)
|
|
TikaConfig(InputStream stream,
Parser delegate)
Deprecated. This method will be removed in Apache Tika 1.0 |
|
TikaConfig(String file)
|
|
TikaConfig(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(String mimeType)
Returns the parser instance configured for the given MIME type. |
Map<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 String DEFAULT_CONFIG_LOCATION
Constructor Detail |
---|
public TikaConfig(String file) throws TikaException, IOException, SAXException
TikaException
IOException
SAXException
public TikaConfig(File file) throws TikaException, IOException, SAXException
TikaException
IOException
SAXException
public TikaConfig(URL url) throws TikaException, IOException, SAXException
TikaException
IOException
SAXException
public TikaConfig(InputStream stream) throws TikaException, IOException, SAXException
TikaException
IOException
SAXException
public TikaConfig(InputStream stream, Parser delegate) throws TikaException, IOException, SAXException
TikaException
IOException
SAXException
public TikaConfig(Document document) throws TikaException, IOException
TikaException
IOException
public TikaConfig(Document document, Parser delegate) throws TikaException, IOException
TikaException
IOException
public TikaConfig(Element element) throws TikaException, IOException
TikaException
IOException
public TikaConfig(Element element, Parser delegate) throws TikaException, IOException
TikaException
IOException
Method Detail |
---|
public Parser getParser(String mimeType)
null
if the given MIME type is unknown.
mimeType
- MIME type
null
public Map<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 |