james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jochen Wiedmann (JIRA)" <server-...@james.apache.org>
Subject [jira] Updated: (MIME4J-19) Pull Parser
Date Wed, 11 Jul 2007 20:49:04 GMT

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

Jochen Wiedmann updated MIME4J-19:
----------------------------------

    Attachment: mime4j-iterator.patch

Suggested patch.


> Pull Parser
> -----------
>
>                 Key: MIME4J-19
>                 URL: https://issues.apache.org/jira/browse/MIME4J-19
>             Project: Mime4j
>          Issue Type: New Feature
>    Affects Versions: 0.3
>            Reporter: Jochen Wiedmann
>             Fix For: 0.4
>
>         Attachments: mime4j-iterator.patch
>
>
> The attached patch introduces a new class called MimeTokenStream, which is a "Pull Parser"
for MIME documents. The class is basically a rewrite of the MimeStreamParser. The patch does
also provide a rewrite of the MimeStreamParser itself, based on the MimeTokenStream.
> Pull parsers are technically a little bit more difficult. However, from the users perspective,
they are much more preferrable, because writing an application on top of a pull parser is
much easier than based on an event handler.
> I would like to rewrite the commons-fileupload component based on mime4j. However, as
commons-fileupload provides a pull parser API, we depend on the presence of a similar API
in mime4j. Not providing a pull parser API would mean, that we'd need to duplicate mime4j
code into commons-fileupload, which is certainly not desirable.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message