Class MimeBodyPart.MimePartDataHandler

  • Enclosing class:
    MimeBodyPart

    static class MimeBodyPart.MimePartDataHandler
    extends DataHandler
    A special DataHandler used only as a marker to indicate that the source of the data is a MimePart (that is, a byte array or a stream). This prevents updateHeaders from trying to change the headers for such data. In particular, the original Content-Transfer-Encoding for the data must be preserved. Otherwise the data would need to be decoded and reencoded.