You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Chris A. Mattmann (JIRA)" <ji...@apache.org> on 2011/02/13 19:36:57 UTC

[jira] Resolved: (TIKA-538) Add method get file extension from MimeTypes

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

Chris A. Mattmann resolved TIKA-538.
------------------------------------

    Resolution: Not A Problem
      Assignee: Chris A. Mattmann

It kind of seems like this functionality is already possible. See the MimeType.java class and its method:

{code:java}
    public String getExtension() {
        return extension;
    }
{code}

Seems like you can get the extension for a particular MimeType that is detected, correct? If not, please file a new issue and be a little more specific as the functionality you are talking about and what's missing. Thanks!

> Add method get file extension from MimeTypes
> --------------------------------------------
>
>                 Key: TIKA-538
>                 URL: https://issues.apache.org/jira/browse/TIKA-538
>             Project: Tika
>          Issue Type: Improvement
>          Components: mime
>    Affects Versions: 0.7
>            Reporter: Peter van Raamsdonk
>            Assignee: Chris A. Mattmann
>            Priority: Minor
>             Fix For: 0.9
>
>
> Mapping between the mimetype and file extension is being done. Mimetypes (http://svn.apache.org/repos/asf/tika/trunk/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml)
> It would be an improvement to get the file extension from the detected mime type. Example detected "audio/mpeg", file extension "mp3"
> In short, make url pattern/ file extension public
> (when working with blobs)

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