[ 
https://issues.apache.org/jira/browse/TIKA-1535?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14309614#comment-14309614
 ] 

Chris A. Mattmann commented on TIKA-1535:
-----------------------------------------

Note that MimeTypes implements Detector, and ultimately that is the interface 
that we want to plug in to here to augment existing MimeTypes functionality. 
Maybe what you could do is to create a BayesianDetector that:

# has an internal private class member/instance of MimeTypes
# augments the MimeTypes info with the probability info
# only overrides the Detector# methods that you need it to override on top of 
what MimeTypes implements.

What do you think?

> Inheritance modification for the class MIMETypes
> ------------------------------------------------
>
>                 Key: TIKA-1535
>                 URL: https://issues.apache.org/jira/browse/TIKA-1535
>             Project: Tika
>          Issue Type: Improvement
>          Components: mime
>            Reporter: Luke sh
>            Priority: Trivial
>
> The Class MIMETypes does not currently allow for inheritance.
> There are a couple of methods in this class which looks independent, and some 
> of which needs to be exposed or overwritten for special needs or use cases, 
> this will enable tika users with more flexibility for new mime detection 
> algorithm.
> ------------------------------------
> Perhaps it may be a good idea to extract out the detector logic from the 
> MimeTypes class, and create an independent detector for Tika.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to