[jira] Created: (TIKA-43) Parser interface

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (TIKA-43) Parser interface

Jorge Spinsanti (Jira)
Parser interface
----------------

                 Key: TIKA-43
                 URL: https://issues.apache.org/jira/browse/TIKA-43
             Project: Tika
          Issue Type: Improvement
          Components: general
            Reporter: Jukka Zitting
            Assignee: Jukka Zitting
             Fix For: 0.1-incubator


Parser should be an interface instead of an abstract base class. This would make many common patterns easier to implement and help decouple the interface from the implementation.

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

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (TIKA-43) Parser interface

Jorge Spinsanti (Jira)

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

Jukka Zitting updated TIKA-43:
------------------------------

    Attachment: TIKA-43.patch

The attached patch (TIKA-43.patch) converts the Parser class to an interface and replaces the getContents() method with the previously protected parse() method as the main (and only) entry point.

The post-processing functionality of the current Parser base class was moved to a new post-processing decorator class ParserPostProcessor, that the ParserFactory automatically uses as a wrapper for all instantiated parsers.

> Parser interface
> ----------------
>
>                 Key: TIKA-43
>                 URL: https://issues.apache.org/jira/browse/TIKA-43
>             Project: Tika
>          Issue Type: Improvement
>          Components: general
>            Reporter: Jukka Zitting
>            Assignee: Jukka Zitting
>             Fix For: 0.1-incubator
>
>         Attachments: TIKA-43.patch
>
>
> Parser should be an interface instead of an abstract base class. This would make many common patterns easier to implement and help decouple the interface from the implementation.

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

Reply | Threaded
Open this post in threaded view
|

[jira] Resolved: (TIKA-43) Parser interface

Jorge Spinsanti (Jira)
In reply to this post by Jorge Spinsanti (Jira)

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

Jukka Zitting resolved TIKA-43.
-------------------------------

    Resolution: Fixed

Committed in revision 582611.

> Parser interface
> ----------------
>
>                 Key: TIKA-43
>                 URL: https://issues.apache.org/jira/browse/TIKA-43
>             Project: Tika
>          Issue Type: Improvement
>          Components: general
>            Reporter: Jukka Zitting
>            Assignee: Jukka Zitting
>             Fix For: 0.1-incubator
>
>         Attachments: TIKA-43.patch
>
>
> Parser should be an interface instead of an abstract base class. This would make many common patterns easier to implement and help decouple the interface from the implementation.

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