Hi, Am Montag, den 18.02.2008, 14:17 +0200 schrieb Jukka Zitting: > Hi, > > On Feb 16, 2008 3:13 PM, Felix Meschberger <[EMAIL PROTECTED]> wrote: > > In SLING-135 Betrand Delacretaz hints at looking at Tika's MIME type > > support for Sling. Though we currently have a MIME type service in the > > commons/mime module, it is certainly worth investigating whether we > > should replace the implementation of this service by Tika's MIME type > > support. > > Note that the media type registry in Tika will likely be refactored at > some point before Tika 1.0. Currently it's pretty much targeted at > representing Tika configuration. > > What are the use cases for media types in Sling? Such information > would be valuable input in making the type registry in Tika more > reusable.
We only have (file) name to MIME-type mapping. But binary data to MIME-type mapping would of course also be interesting at some point in time. In addition, we currently are based on mimeconfig files, which just map a mime type (e.g. text/plain) to a list of file extensions (e.g. log, txt). And we have support to extend this mapping by providing more mimeconfig files in deployed bundles. Reusing Tika's stuff is just a matter of whether we re-use code or do it ourselves and of course managing and maintaining a core set of mappings. Regards Felix > > BR, > > Jukka Zitting
