[
https://issues.apache.org/jira/browse/MIME4J-87?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Markus Wiederkehr updated MIME4J-87:
------------------------------------
Attachment: mime4j-bodyfactory.patch
This patch introduces a new class called BodyFactory for creating message
bodies.
The classes TempFileBinaryBody and TempFileTextBody get replaced by
StorageBinaryBody and StorageTextBody respectively.
There is one side effect worth mentioning: TempFileTextBody used ISO-8859-1 as
fallback charset. BodyFactory uses US-ASCII instead. This can easily be changed
if there is a special reason for using Latin-1.
> Add a factory for creating message bodies
> -----------------------------------------
>
> Key: MIME4J-87
> URL: https://issues.apache.org/jira/browse/MIME4J-87
> Project: JAMES Mime4j
> Issue Type: New Feature
> Affects Versions: 0.5
> Reporter: Markus Wiederkehr
> Fix For: 0.6
>
> Attachments: mime4j-bodyfactory.patch
>
>
> Currently it is not possible to build a Message object out of the box. This
> is because the user has to write a custom class that holds the message body
> first. TempFileBinaryBody and TempFileTextBody are package private and there
> is no other alternative.
> But instead of making these classes public a factory class should be added.
> This factory should provide methods for
> creating text and binary bodies from various sources such as InputStreams or
> Strings.
--
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]