MIME4J-321 SingleBody should return its size (#80)

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.
2 files changed