Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6456395

DataHandler.writeTo should have built-in support for byte arrays and Strings

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 1.1.1
    • 1.1
    • other-libs
    • None
    • 1.1.1
    • generic
    • generic

    Backports

      Description

        Users of JavaMail often create DataHandlers with an object and an unknown
        (no DataContentHandler) MIME type. The object is often a simple type such
        as a byte array or a String. JavaMail fails to "serialize" these types
        because DataHandler doesn't know how to convert these objects to a byte stream.
        DataHandler should do the obvious "conversion" for byte arrays and Strings.

        Attachments

          Issue Links

            Activity

              People

                bshannon Bill Shannon (Inactive)
                bshannon Bill Shannon (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: