Package mireka
Interface MailData
-
- All Known Implementing Classes:
DeferredFileMailData
public interface MailDataRepresents the material transmitted after the SMTP DATA command is accepted and before the end of data indication is transmitted.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddispose()Releases resources, like temporary files.java.io.InputStreamgetInputStream()Returns the data stream positioned to the first byte of the mail data.voidwriteTo(java.io.OutputStream out)Copies the message content into the supplied stream.
-
-
-
Method Detail
-
getInputStream
java.io.InputStream getInputStream() throws java.io.IOExceptionReturns 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.IOExceptionCopies 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.
-
-