Is Tika compatible with android?

孤者浪人 提交于 2019-12-06 11:03:30

问题


I have seen the 1.0 release of Apache Tika, which ease a lot metadata extraction in Java, and I'm wondering if it can be used in Android.


回答1:


I'd suspect you should be fine to port the core of Tika to Android. However, you're likely to have issues with a lot of the dependencies of Tika, so many of the parsers won't work

For example, one of the dependencies of Apache Tika is Apache POI. People have tried to compile POI for Android, but have hit issues with the method limit that Android imposes. Here's one discussion on this on the POI lists, and here's another.

You're likely to hit similar issues with other of the dependencies of Tika too. So, I'd expect getting the core in won't be too bad, but you'll have to cut out some of the parsers to fit within the Android limitations.




回答2:


Yes it is, however, you should probably extract only the parsers you need since it is a fairly large library to include in a mobile application. My project uses the MP3, Flac, OGG, and Vorbis parsers to retrieve metadata from audio files. Here is a link to the stripped down JAR file if you are interested:

http://servestream.svn.sourceforge.net/viewvc/servestream/trunk/lib/tika-app-1.0.jar?view=log




回答3:


I'm working on getting part of it to work for api 7 (not quite finished getting it to build). If you're working in api 8+, then you can ignore this, but api 7 doesn't have javax.xml.namespace implemented. I found an independent implementation here and after importing that, a lot of problems disappeared. I'll let you know if I run into any problems as a result.




回答4:


Its possible to port Apache Tika to Android. I have done this. Please have a look at my eDocReader app at https://play.google.com/store/apps/details?id=somitsolutions.android.bookreader#?t=W251bGwsMSwxLDIxMiwic29taXRzb2x1dGlvbnMuYW5kcm9pZC5ib29rcmVhZGVyIl0.

This was developed by porting Apache tika to Android...



来源:https://stackoverflow.com/questions/8135775/is-tika-compatible-with-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!