public interface MaildropAppender
Modifier and Type | Method and Description |
---|---|
void |
commit()
It closes the output stream, adds the mail to the maildrop and releases
the appender.
|
java.io.OutputStream |
getOutputStream()
Returns an output stream into which the mail must be written.
|
void |
rollback()
It closes the output stream if it is open, removes any temporary files
and releases the appender.
|
java.io.OutputStream getOutputStream() throws LocalMailSystemException
commit()
or rollback()
must be called later to close
this stream.LocalMailSystemException
void commit() throws LocalMailSystemException
LocalMailSystemException
- if the mail couldn't be added to the maildrop for some
reason.void rollback()