Class MimeMultipart

  • Direct Known Subclasses:
    IMAPMultipart

    public class MimeMultipart
    extends Multipart
    A MIME multipart container.

    The default multipart subtype is "mixed". However, an application can construct a MIME multipart object of any subtype using the MimeMultipart(String) constructor.

    Version:
    1.4
    Author:
    Chris Burdess
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected javax.activation.DataSource ds
      The data source supplying the multipart data.
      protected boolean parsed
      Indicates whether the data from the input stream has been parsed yet.
    • Constructor Summary

      Constructors 
      Constructor Description
      MimeMultipart()
      Constructor for an empty MIME multipart of type "multipart/mixed".
      MimeMultipart​(java.lang.String subtype)
      Constructor for an empty MIME multipart of the given subtype.
      MimeMultipart​(javax.activation.DataSource ds)
      Constructor with a given data source.
    • Field Detail

      • ds

        protected javax.activation.DataSource ds
        The data source supplying the multipart data.
      • parsed

        protected boolean parsed
        Indicates whether the data from the input stream has been parsed yet.
    • Constructor Detail

      • MimeMultipart

        public MimeMultipart()
        Constructor for an empty MIME multipart of type "multipart/mixed".
      • MimeMultipart

        public MimeMultipart​(java.lang.String subtype)
        Constructor for an empty MIME multipart of the given subtype.
      • MimeMultipart

        public MimeMultipart​(javax.activation.DataSource ds)
                      throws MessagingException
        Constructor with a given data source.
        Parameters:
        ds - the data source, which can be a MultipartDataSource
        Throws:
        MessagingException