[
https://issues.apache.org/jira/browse/MIME4J-191?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13020792#comment-13020792
]
Stefano Bagnara commented on MIME4J-191:
----------------------------------------
MimeWriter.writeField also includes the ending CRLF while the previous
Field.writeTo didn't include it. Of course I can adapt my client code, but I
wanted to give feedback about the different behaviour.
> API doesn't expose anymore a method to write out header fields
> --------------------------------------------------------------
>
> Key: MIME4J-191
> URL: https://issues.apache.org/jira/browse/MIME4J-191
> Project: JAMES Mime4j
> Issue Type: Bug
> Components: dom
> Affects Versions: 0.7
> Reporter: Stefano Bagnara
> Fix For: 0.7
>
>
> jDKIM used this code to convert a List<Field> (mime4j) into a List of folded
> headers Strings:
> ----
> private List<String> convertFields(List<Field> res) {
> List<String> res2 = new LinkedList<String>();
> for (Field f : res) {
> ByteArrayOutputStream bos = new ByteArrayOutputStream();
> String field = null;
> try {
> f.writeTo(bos);
> field = new String(bos.toByteArray());
> } catch (IOException e) {
> }
> res2.add(field);
> }
> return res2;
> }
> -----
> I checked out MimeWriter but it doesn't expose any "Field" related writer.
> What API replaces the Field.writeTo method?
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira