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

Nick Burch commented on TIKA-661:
---------------------------------

Currently we only allow one mime type to have any given extension. Possibly we 
could relax that slightly if we implement support like this

> MimeType class does contain a String with accessor named Extension. This 
> should be a List<String> Extensions due to several reasons.
> ------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: TIKA-661
>                 URL: https://issues.apache.org/jira/browse/TIKA-661
>             Project: Tika
>          Issue Type: Bug
>          Components: mime
>    Affects Versions: 0.9
>            Reporter: Henning Gross
>              Labels: features, newbie, patch
>
> The javadoc for the method suggest that it will return the "preferred 
> extension" for a MimeType. Acutally its the first Extension deserialized from 
> tika-mimetypes.xml. The method would have to be renamed to 
> getFirstExtensionInList(). This pretty much points at the fact that this 
> method makes no sense at all. 
> There are several use-cases in which one would want to know ALL known valid 
> extensions for one mime type. I will submit a patch later today.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to