public class DumpTikaConfigExample extends Object
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.
Modifier and Type | Class and Description |
---|---|
protected static class |
DumpTikaConfigExample.Mode |
Constructor and Description |
---|
DumpTikaConfigExample() |
Modifier and Type | Method and Description |
---|---|
void |
dump(TikaConfig config,
DumpTikaConfigExample.Mode mode,
Writer writer,
String encoding) |
static void |
main(String[] args) |
public void dump(TikaConfig config, DumpTikaConfigExample.Mode mode, Writer writer, String encoding) throws Exception
config
- config file to dumpwriter
- writer to which to writeException
Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.