public class TgzReader extends Object implements com.aspose.ms.System.IDisposable
The mailbox items reader of Zimbra tgz storage.
IDisposable
Constructor and Description |
---|
TgzReader(String fileName)
Initializes a new instance of the
TgzReader class. |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
|
void |
exportTo(String path)
Save messages and directory structure using given path.
|
String |
getCurrentDirectory()
Gets the current directory name.
|
MailMessage |
getCurrentMessage()
Gets the current message.
|
boolean |
readNextMessage()
Reads the next message.
|
public final String getCurrentDirectory()
Gets the current directory name.
Value: The name of directory.public final MailMessage getCurrentMessage()
Gets the current message.
Value: TheMailMessage
.public final void exportTo(String path)
Save messages and directory structure using given path.
path
- The main directory path to save storage structure.com.aspose.ms.System.ArgumentNullException
- throws if file name is null or emptypublic final boolean readNextMessage()
Reads the next message.
public final void dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
dispose
in interface com.aspose.ms.System.IDisposable