Package mireka

Interface MailData

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void dispose()
      Releases resources, like temporary files.
      java.io.InputStream getInputStream()
      Returns the data stream positioned to the first byte of the mail data.
      void writeTo​(java.io.OutputStream out)
      Copies the message content into the supplied stream.
    • Method Detail

      • getInputStream

        java.io.InputStream getInputStream()
                                    throws java.io.IOException
        Returns the data stream positioned to the first byte of the mail data. The caller must close the returned stream.
        Throws:
        java.io.IOException
      • writeTo

        void writeTo​(java.io.OutputStream out)
              throws java.io.IOException
        Copies the message content into the supplied stream. It does not close the target stream.
        Throws:
        java.io.IOException
      • dispose

        void dispose()
        Releases resources, like temporary files.