Package org.apache.tika.config
Class TikaConfig
java.lang.Object
org.apache.tika.config.TikaConfig
Deprecated.
This version of the Apache Tika library is deprecated. Use your own version of Apache Tika.
Parse xml config file.
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Creates a default Tika configuration.TikaConfig(File file) Deprecated.TikaConfig(File file, ServiceLoader loader) Deprecated.TikaConfig(InputStream stream) Deprecated.TikaConfig(ClassLoader loader) Deprecated.Creates a Tika configuration from the built-in media type rules and all theParserimplementations available through theservice provider mechanismin the given class loader.TikaConfig(String file) Deprecated.TikaConfig(URL url) Deprecated.TikaConfig(URL url, ClassLoader loader) Deprecated.TikaConfig(URL url, ServiceLoader loader) Deprecated.TikaConfig(Path path) Deprecated.TikaConfig(Path path, ServiceLoader loader) Deprecated.TikaConfig(Document document) Deprecated.TikaConfig(Document document, ServiceLoader loader) Deprecated.TikaConfig(Element element) Deprecated.TikaConfig(Element element, ClassLoader loader) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionstatic TikaConfigDeprecated.Provides a default configuration (TikaConfig).Deprecated.Returns the configured detector instance.Deprecated.Returns the configured encoding detector instanceDeprecated.Deprecated.org.apache.tika.metadata.filter.MetadataFilterDeprecated.Deprecated.Deprecated.Returns the configured parser instance.Deprecated.Use thegetParser()method insteadDeprecated.Deprecated.Returns the configured translator instance.
-
Constructor Details
-
TikaConfig
Deprecated.- Throws:
TikaExceptionIOExceptionSAXException
-
TikaConfig
Deprecated.- Throws:
TikaExceptionIOExceptionSAXException
-
TikaConfig
Deprecated.- Throws:
TikaExceptionIOExceptionSAXException
-
TikaConfig
Deprecated.- Throws:
TikaExceptionIOExceptionSAXException
-
TikaConfig
Deprecated.- Throws:
TikaExceptionIOExceptionSAXException
-
TikaConfig
Deprecated.- Throws:
TikaExceptionIOExceptionSAXException
-
TikaConfig
Deprecated.- Throws:
TikaExceptionIOExceptionSAXException
-
TikaConfig
Deprecated.- Throws:
TikaExceptionIOExceptionSAXException
-
TikaConfig
Deprecated.- Throws:
TikaExceptionIOExceptionSAXException
-
TikaConfig
Deprecated.- Throws:
TikaExceptionIOException
-
TikaConfig
Deprecated.- Throws:
TikaExceptionIOException
-
TikaConfig
Deprecated.- Throws:
TikaExceptionIOException
-
TikaConfig
Deprecated.- Throws:
TikaExceptionIOException
-
TikaConfig
Deprecated.Creates a Tika configuration from the built-in media type rules and all theParserimplementations available through theservice provider mechanismin the given class loader.- Parameters:
loader- the class loader through which parser implementations are loaded, ornullfor no parsers- Throws:
MimeTypeException- if the built-in media type rules are brokenIOException- if the built-in media type rules can not be read- Since:
- Apache Tika 0.8
-
TikaConfig
Deprecated.Creates a default Tika configuration. First checks whether an XML config file is specified, either in- System property "tika.config", or
- Environment variable TIKA_CONFIG
If one of these have a value, try to resolve it relative to file system or classpath.
If XML config is not specified, initialize from the built-in media type rules and all the
Parserimplementations available through theservice provider mechanismin the context class loader of the current thread.- Throws:
IOException- if the configuration can not be readTikaException- if problem with MimeTypes or parsing XML config
-
-
Method Details
-
getParser
Deprecated.Use thegetParser()method instead -
getParser
Deprecated.Returns the configured parser instance.- Returns:
- configured parser
-
getDetector
Deprecated.Returns the configured detector instance.- Returns:
- configured detector
-
getEncodingDetector
Deprecated.Returns the configured encoding detector instance- Returns:
- configured encoding detector
-
getTranslator
Deprecated.Returns the configured translator instance.- Returns:
- configured translator
-
getExecutorService
Deprecated. -
getMimeRepository
Deprecated. -
getMediaTypeRegistry
Deprecated. -
getServiceLoader
Deprecated. -
getMetadataFilter
public org.apache.tika.metadata.filter.MetadataFilter getMetadataFilter()Deprecated. -
getDefaultConfig
Deprecated.Provides a default configuration (TikaConfig). Currently creates a new instance each time it's called; we may be able to have it return a shared instance once it is completely immutable.- Returns:
- default configuration
-