Nick, can you help me with some code? Can you throw in some pseuso code (I won't hold you to the accuracy) so I will understand the strategy a little bit more?
On Wed, Apr 23, 2014 at 11:40 AM, Nick Burch <[email protected]> wrote: > On Wed, 23 Apr 2014, אברהם חיון wrote: > >> So if the MediaType is from type XML I want to do some action, if it is a >> compressed file I want to start an other action. >> >> My problem is that there are many XML types, so how do I check if it is an >> XML using the MediaType ? >> > > Check the supertype, and then recurse checking supertypes of that, until > you either hit the type of interest, or hit octet stream > > Look at the displaySupportedTypes() method of TikaCLI for an example of > getting the supertype, then recurse on that if you want to keep checking up > the tree > > Nick
