You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Ryan McKinley (JIRA)" <ji...@apache.org> on 2012/10/30 02:08:12 UTC

[jira] [Updated] (TIKA-1013) Add ability to check if a mime-type is already registered

     [ https://issues.apache.org/jira/browse/TIKA-1013?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ryan McKinley updated TIKA-1013:
--------------------------------

    Attachment: TIKA-1013-check-registered-mime.patch

a simple patch that uses the same logic as #forName(String) but does not register a new mime type
                
> Add ability to check if a mime-type is already registered
> ---------------------------------------------------------
>
>                 Key: TIKA-1013
>                 URL: https://issues.apache.org/jira/browse/TIKA-1013
>             Project: Tika
>          Issue Type: New Feature
>          Components: mime
>            Reporter: Ryan McKinley
>            Priority: Minor
>         Attachments: TIKA-1013-check-registered-mime.patch
>
>
> Currently you can not ask MimeTypes if it knows about mime-type or not.  This patch adds the ability to get the normalized MimeType for a string *without* creating a new one.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira