MboxrdStorageWriter

Inheritance: java.lang.Object, com.aspose.email.MboxStorageWriter

public final class MboxrdStorageWriter extends MboxStorageWriter

Represents mboxrd format storage writer, this format is being used by Thunderbird and other mail clients.

Constructors

ConstructorDescription
MboxrdStorageWriter(OutputStream stream, boolean leaveOpen)Initializes a new instance of the MboxrdStorageWriter class.
MboxrdStorageWriter(System.IO.Stream stream, boolean leaveOpen)Initializes a new instance of the MboxrdStorageWriter class.
MboxrdStorageWriter(String fileName, boolean leaveOpen)Initializes a new instance of the MboxrdStorageWriter class.
MboxrdStorageWriter(String fileName)Constructor for MboxrdStorageWriter.

Methods

MethodDescription
close()
dispose()Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
equals(Object arg0)
flush()flush.
getBaseStream()Gets the base stream.
getClass()
hashCode()
notify()
notifyAll()
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)
writeMessage(MailMessage message)Writes the message to underlying storage stream.
writeMessage(MailMessage message, String[] fromMarker)Writes the message to underlying storage stream.

MboxrdStorageWriter(OutputStream stream, boolean leaveOpen)

public MboxrdStorageWriter(OutputStream stream, boolean leaveOpen)

Initializes a new instance of the MboxrdStorageWriter class.

Parameters:

ParameterTypeDescription
streamjava.io.OutputStreamThe stream.
leaveOpenbooleanif set to true leaves the underlying stream open after disposing.

MboxrdStorageWriter(System.IO.Stream stream, boolean leaveOpen)

public MboxrdStorageWriter(System.IO.Stream stream, boolean leaveOpen)

Initializes a new instance of the MboxrdStorageWriter class.

Parameters:

ParameterTypeDescription
streamcom.aspose.ms.System.IO.StreamThe stream.
leaveOpenbooleanif set to true leaves the underlying stream open after disposing.

MboxrdStorageWriter(String fileName, boolean leaveOpen)

public MboxrdStorageWriter(String fileName, boolean leaveOpen)

Initializes a new instance of the MboxrdStorageWriter class.

Parameters:

ParameterTypeDescription
fileNamejava.lang.StringName of the file.
leaveOpenbooleanif set to true leaves the underlying stream open after disposing.

MboxrdStorageWriter(String fileName)

public MboxrdStorageWriter(String fileName)

Constructor for MboxrdStorageWriter.

Parameters:

ParameterTypeDescription
fileNamejava.lang.Stringa java.lang.String object.

close()

public void close()

dispose()

public final void dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

flush()

public void flush()

flush.

getBaseStream()

public InputStream getBaseStream()

Gets the base stream.

Value: The base stream.

Returns: java.io.InputStream

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int

writeMessage(MailMessage message)

public String writeMessage(MailMessage message)

Writes the message to underlying storage stream.

Parameters:

ParameterTypeDescription
messageMailMessageThe message to write to.

Returns: java.lang.String - The string identifier of added message.

writeMessage(MailMessage message, String[] fromMarker)

public String writeMessage(MailMessage message, String[] fromMarker)

Writes the message to underlying storage stream.

Parameters:

ParameterTypeDescription
messageMailMessageThe message to write to.
fromMarkerjava.lang.String[]Gets the From Marker while writing the MBox Storage file.

Returns: java.lang.String - The string identifier of added message.