Benoit Tellier created MIME4J-321:
-------------------------------------

             Summary: SingleBody should return its size
                 Key: MIME4J-321
                 URL: https://issues.apache.org/jira/browse/MIME4J-321
             Project: James Mime4j
          Issue Type: New Feature
          Components: dom
    Affects Versions: 0.8.8
            Reporter: Benoit Tellier
             Fix For: 0.8.9


A quite common need is for instance to get the size off attachments.

Today the DOM API offer no other ways than to read the inputstream of the Body 
Part and manually compute the size.

However, implementation holding the raw data might already have this value 
pre-computed and this could be used to get the size very cheaply, without 
copies.

I propose to add a default "copy" implementation, and provide more optimal 
implementations where possible.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to