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/10/12 22:12:50 UTC

[jira] Commented: (TIKA-59) Include parser class name in Metadata object.

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

Keith R. Bennett commented on TIKA-59:
--------------------------------------

Correction, the Parser constructor could not set the Metadata's parser class because the Metadata object is not necessarily  passed to its constructor.  And, the Parser could be reused for multiple documents.

So the setting of the Metadata's parser class would have to happen in parse().

Sorry about that...

> Include parser class name in Metadata object.
> ---------------------------------------------
>
>                 Key: TIKA-59
>                 URL: https://issues.apache.org/jira/browse/TIKA-59
>             Project: Tika
>          Issue Type: Wish
>          Components: general
>    Affects Versions: 0.1-incubator
>            Reporter: Keith R. Bennett
>            Priority: Minor
>             Fix For: 0.1-incubator
>
>
> It would be helpful to know which parser was used to parse a given document.  Some convenience methods eliminate the need for the user to make that determination, so in that case there would be no way to know which parser was used.
> This feature could be helpful in testing and debugging, both for ourselves and for users.
> The class name could either be an entry in the Map (a property), or an instance variable.
> If the Parser ever becomes an abstract class, the act of setting this value could be done in the abstract class constructor, eliminating the need for parser implementations to deal with this.

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