Package mireka.smtp.server
Class DeferredFileMailData
- Object
-
- mireka.smtp.server.DeferredFileMailData
-
-
Constructor Summary
Constructors Constructor Description DeferredFileMailData(org.subethamail.smtp.io.DeferredFileOutputStream deferredFileOutputStream)Constructs a new DeferredFileMailData so that it contains the message content residing in the specified stream.
-
Method Summary
All Methods Instance Methods Concrete 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.
-
-
-
Constructor Detail
-
DeferredFileMailData
public DeferredFileMailData(org.subethamail.smtp.io.DeferredFileOutputStream deferredFileOutputStream)
Constructs a new DeferredFileMailData so that it contains the message content residing in the specified stream.- Parameters:
deferredFileOutputStream- The stream containing the message content.
-
-
Method Detail
-
getInputStream
public java.io.InputStream getInputStream()
Description copied from interface:MailDataReturns the data stream positioned to the first byte of the mail data. The caller must close the returned stream.- Specified by:
getInputStreamin interfaceMailData
-
writeTo
public void writeTo(java.io.OutputStream out) throws java.io.IOExceptionDescription copied from interface:MailDataCopies the message content into the supplied stream. It does not close the target stream.
-
-