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

SingleBody should expose a getSize method.

    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

          People

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

            Dates

              Created:
              Updated: