Uploaded image for project: 'James Mime4j'
  1. James Mime4j
  2. MIME4J-321

SingleBody should return its size

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.8.8
    • 0.8.9
    • dom
    • None

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            btellier Benoit Tellier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 20m
                20m