public class TgzReader extends Object implements IDisposable, Closeable
The mailbox items reader of Zimbra tgz storage.
IDisposable| Constructor and Description |
|---|
TgzReader(Stream stream)
Initializes a new instance of the
TgzReader class. |
TgzReader(String fileName)
Initializes a new instance of the
TgzReader class. |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
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.
|
int |
getTotalItemsCount()
Gets the total count of items.
|
boolean |
readNextMessage()
Reads the next message.
|
public TgzReader(String fileName)
Initializes a new instance of the TgzReader class.
fileName - The filename.ArgumentNullException - throws if file name is null or emptypublic TgzReader(Stream stream)
Initializes a new instance of the TgzReader class.
stream - The stream.ArgumentNullException - throws if stream is nullpublic 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.ArgumentNullException - throws if file name is null or emptypublic final int getTotalItemsCount()
Gets the total count of items.
public 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 IDisposablepublic void close()
close in interface Closeableclose in interface AutoCloseableCopyright (c) 2008-2024 Aspose Pty Ltd. All Rights Reserved.