Module jakarta.mail

Class MimeBodyPart.MimePartDataHandler

java.lang.Object
jakarta.activation.DataHandler
jakarta.mail.internet.MimeBodyPart.MimePartDataHandler
Enclosing class:
MimeBodyPart

static class MimeBodyPart.MimePartDataHandler extends jakarta.activation.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.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) MimePart
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    (package private) InputStream
     
    (package private) MimePart
     

    Methods inherited from class jakarta.activation.DataHandler

    getAllCommands, getBean, getCommand, getContent, getContentType, getDataSource, getInputStream, getName, getOutputStream, getPreferredCommands, getTransferData, getTransferDataFlavors, isDataFlavorSupported, setCommandMap, setDataContentHandlerFactory, writeTo

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait