Module jakarta.mail

Class text_plain

  • All Implemented Interfaces:
    javax.activation.DataContentHandler
    Direct Known Subclasses:
    text_html, text_xml

    public class text_plain
    extends handler_base
    DataContentHandler for text/plain.
    • Constructor Summary

      Constructors 
      Constructor Description
      text_plain()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object getContent​(javax.activation.DataSource ds)  
      protected javax.activation.ActivationDataFlavor[] getDataFlavors()
      Return an array of ActivationDataFlavors that we support.
      void writeTo​(java.lang.Object obj, java.lang.String type, java.io.OutputStream os)
      Write the object to the output stream, using the specified MIME type.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • text_plain

        public text_plain()
    • Method Detail

      • getDataFlavors

        protected javax.activation.ActivationDataFlavor[] getDataFlavors()
        Description copied from class: handler_base
        Return an array of ActivationDataFlavors that we support. Usually there will be only one.
        Specified by:
        getDataFlavors in class handler_base
        Returns:
        array of ActivationDataFlavors that we support
      • getContent

        public java.lang.Object getContent​(javax.activation.DataSource ds)
                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • writeTo

        public void writeTo​(java.lang.Object obj,
                            java.lang.String type,
                            java.io.OutputStream os)
                     throws java.io.IOException
        Write the object to the output stream, using the specified MIME type.
        Throws:
        java.io.IOException