Class DumpTikaConfigExample


  • public class DumpTikaConfigExample
    extends Object
    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 Detail

      • DumpTikaConfigExample

        public DumpTikaConfigExample()
    • Method Detail

      • main

        public static void main​(String[] args)
                         throws Exception
        Parameters:
        args - outputFile, outputEncoding, if args is empty, this prints to console
        Throws:
        Exception