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

Tyler Palsulich commented on TIKA-1535:
---------------------------------------

Maybe someone else can comment on this too. But, I believe MimeTypes is 
{{final}} because there are restrictions of what can be done with the given 
{{InputStream}}. If those restrictions are broken, key features of Tika may 
break. So, we declared the class as final to ensure no one could break those 
semantics.

But, as seen here, it's difficult to predict whether or not there will be a 
valid {{extend}} use case. So, you have to be careful when marking a class 
{{final}}.

> 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.



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

Reply via email to