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

Jukka Zitting updated TIKA-33:
------------------------------

    Attachment: TIKA-33.patch

Proposed patch.

This patch replaces the getContentStr(), getContents() and getContent(String) 
methods on Parser with the following method:

    String getContents(InputStream stream, Map<String, Content> contents)

The internal implementation is still the same as before, minus the state 
handling parts.

This change makes the current ParserFactory, ParseUtils, and test case code 
somewhat cumbersome, but I didn't want to streamline them yet too much to keep 
the patch clearly focused.

> Stateless parsers
> -----------------
>
>                 Key: TIKA-33
>                 URL: https://issues.apache.org/jira/browse/TIKA-33
>             Project: Tika
>          Issue Type: Improvement
>          Components: general
>            Reporter: Jukka Zitting
>         Attachments: TIKA-33.patch
>
>
> As a next step towards the proposed Parser model from the mailing list I'd 
> like to make the current (as after TIKA-31) Parser class stateless by 
> removing the Content, InputStream, and other related member variables and 
> giving them as parameters to a parse method call.

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

Reply via email to