Module jakarta.mail

Class 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 part  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) java.io.InputStream getContentStream()  
      (package private) MimePart getPart()  
      • 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