Package org.apache.tika.example
Class DumpTikaConfigExample
java.lang.Object
org.apache.tika.example.DumpTikaConfigExample
This class shows how to dump a TikaConfig object to a configuration file.
This allows users to easily dump the default TikaConfig as a base from which
to start if they want to modify the default configuration file.
For those who want to modify the mimes file, take a look at tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml for inspiration. Consider adding org/apache/tika/mime/custom-mimetypes.xml for your custom mime types.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
DumpTikaConfigExample
public DumpTikaConfigExample()
-
-
Method Details
-
main
- Parameters:
args
- outputFile, outputEncoding, if args is empty, this prints to console- Throws:
Exception
-