TgzReader

Inheritance: java.lang.Object

All Implemented Interfaces: com.aspose.ms.System.IDisposable, java.io.Closeable

public class TgzReader implements System.IDisposable, Closeable

The mailbox items reader of Zimbra tgz storage.

Constructors

Constructor Description
TgzReader(String fileName) Initializes a new instance of the TgzReader class.

Methods

Method Description
getCurrentDirectory() Gets the current directory name.
getCurrentMessage() Gets the current message.
exportTo(String path) Save messages and directory structure using given path.
readNextMessage() Reads the next message.
dispose() Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
close()

TgzReader(String fileName)

public TgzReader(String fileName)

Initializes a new instance of the TgzReader class.

Parameters:

Parameter Type Description
fileName java.lang.String The filename.

getCurrentDirectory()

public final String getCurrentDirectory()

Gets the current directory name.

Value: The name of directory.

Returns: java.lang.String

getCurrentMessage()

public final MailMessage getCurrentMessage()

Gets the current message.

Value: The MailMessage.

Returns: MailMessage

exportTo(String path)

public final void exportTo(String path)

Save messages and directory structure using given path.

Parameters:

Parameter Type Description
path java.lang.String The main directory path to save storage structure.

readNextMessage()

public final boolean readNextMessage()

Reads the next message.

Returns: boolean -

dispose()

public final void dispose()

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

close()

public void close()