You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nutch.apache.org by "Doğacan Güney (JIRA)" <ji...@apache.org> on 2008/09/22 18:46:44 UTC

[jira] Commented: (NUTCH-637) Add method to nutch and tika system(Code written)

    [ https://issues.apache.org/jira/browse/NUTCH-637?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12633376#action_12633376 ] 

Doğacan Güney commented on NUTCH-637:
-------------------------------------

Why do you need this method?

(Content-type is already auto-discovered for a content anyway...)

> Add method to nutch and tika system(Code written)
> -------------------------------------------------
>
>                 Key: NUTCH-637
>                 URL: https://issues.apache.org/jira/browse/NUTCH-637
>             Project: Nutch
>          Issue Type: Task
>         Environment: ALL
>            Reporter: Michael Bostwick
>             Fix For: 1.0.0
>
>   Original Estimate: 0.08h
>  Remaining Estimate: 0.08h
>
>   public MimeType getMimeType(byte[] content){
> 	  return this.mimeTypes.getMimeType(content);
>   }
>  paste this code into nutch/src/java/org/apache/nutch/util/MimeUtil.java which will allow byte content to be used to determine file type

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