[
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.