Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Tika Wiki" for change 
notification.

The "Troubleshooting Tika" page has been changed by NickBurch:
https://wiki.apache.org/tika/Troubleshooting%20Tika?action=diff&rev1=5&rev2=6

  === Tika Server ===
  Go to `http://localhost:9998/version`
  === Tika Facade ===
- ''todo''
+ {{{
+ // Get your Tika object, eg
+ Tika tika = new Tika();
+ // Call toString() to get the version
+ String version = tika.toString();
+ }}}
  === Tika Java classes ===
- ''todo''
+ {{{
+ // Get your Tika Config, eg
+ TikaConfig config = TikaConfig.getDefaultConfig();
+ // Go via the Tika Facade
+ String version = (new Tika(config)).toString();
+ }}}
  
  == Identifying what Mime Types your Tika install supports ==
  === Tika App ===
@@ -79, +89 @@

  === Tika Server ===
  Go to `http://localhost:9998/mime-types`
  === Tika Facade ===
- ''todo''
+ This is not directly possible from the Tika Facade class. Instead, follow the 
'''Tika Java classes''' route below
  === Tika Java classes ===
- ''todo''
+ {{{
+ // Get your Tika Config, eg
+ TikaConfig config = TikaConfig.getDefaultConfig();
+ // Get the registry
+ MediaTypeRegistry registry = config.getMediaTypeRegistry();
+ // List
+ for (MediaType type : registry.getTypes()) {
+    String typeStr = type.toString();
+ }
+ }}}
  
  == Identifying what Parsers your Tika install supports ==
  === Tika App ===
@@ -89, +108 @@

  === Tika Server ===
  Go to `http://localhost:9998/parsers`
  === Tika Facade ===
- ''todo''
+ {{{// Get your Tika object, eg
+ Tika tika = new Tika();
+ // Call toString() to get the version
+ String version = tika.toString();}}}
  === Tika Java classes ===
- ''todo''
+ {{{// Get your Tika Config, eg
+ TikaConfig config = TikaConfig.getDefaultConfig();
+ // Go via the Tika Facade
+ String version = (new Tika(config)).toString();}}
  
  == Identifying what Detectors your Tika install supports ==
  === Tika App ===

Reply via email to