You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Keith R. Bennett (JIRA)" <ji...@apache.org> on 2007/09/11 21:31:32 UTC

[jira] Updated: (TIKA-12) Add URL capability to MimeTypesUtils

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

Keith R. Bennett updated TIKA-12:
---------------------------------

    Attachment: tika-12.patch

I've moved the logic to getMimeType(String name), with getMimeType(File) and getMimeType(URL) thin wrappers around it.

A very minimal test file is included (which passes).

An obsolete FIXME comment was also removed.

> Add URL capability to MimeTypesUtils
> ------------------------------------
>
>                 Key: TIKA-12
>                 URL: https://issues.apache.org/jira/browse/TIKA-12
>             Project: Tika
>          Issue Type: Improvement
>          Components: general
>    Affects Versions: 0.1-incubator
>            Reporter: Keith R. Bennett
>             Fix For: 0.1-incubator
>
>         Attachments: tika-12.patch
>
>
> Assuming we will need to work with URL's, it would be helpful for MimeTypesUtils to return the mime type for a URL.  Currently it only works on Files.
> I think we will need to handle URL's.  My immediate need for URL's is to use getClass().getResource("a_config_file_name") to locate configuration files at test time.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.