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

SingleBody should expose a getSize method.

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • master
    • None
    • dom

    Description

      Using a bit the dom, I end up dimensioning a byte array stream to write a body in.

      Sadly, I don't get any method to retrieve this information.

      A quick look at available implementations tells me that SingleBody subclasses rely on String and bytes array. The size information is thus available without effort.

      Thus I would find it interesting to expose a singleBody.getSize() method, that would lead to better memory management in James (upon attachment parsing).

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            btellier Benoit Tellier

            Dates

              Created:
              Updated:

              Slack

                Issue deployment