public class OlmStorage extends Object implements com.aspose.ms.System.IDisposable
Represents Outlook for Mac storage (.OLM) file.
Constructor and Description |
---|
OlmStorage(InputStream stream)
Initializes a new instance of the
OlmStorage class. |
OlmStorage(String fileName)
Initializes a new instance of the
OlmStorage class. |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Performs application-defined tasks associated with freeing,
releasing, or resetting unmanaged resources.
|
protected void |
dispose(boolean disposing)
Releases unmanaged and - optionally - managed resources.
|
com.aspose.ms.System.Collections.Generic.IGenericEnumerable<MapiMessage> |
enumerateMessages(OlmFolder folder)
Exposes the enumerator, which supports an iteration of messages in folder.
|
List<OlmFolder> |
getFolderHierarchy()
Gets the folder hierarchy.
|
public OlmStorage(String fileName)
Initializes a new instance of the OlmStorage
class.
fileName
- OLM file name.com.aspose.ms.System.ArgumentNullException
- throws if file name is null or emptypublic OlmStorage(InputStream stream)
Initializes a new instance of the OlmStorage
class.
stream
- Source stream InputOutputStream
with OLM storage data.com.aspose.ms.System.ArgumentNullException
- throws if stream is nullpublic final List<OlmFolder> getFolderHierarchy()
Gets the folder hierarchy.
Value: The folder hierarchy.public final com.aspose.ms.System.Collections.Generic.IGenericEnumerable<MapiMessage> enumerateMessages(OlmFolder folder)
Exposes the enumerator, which supports an iteration of messages in folder.
folder
- OlmFolder
that represents information about folder in OLM storage.System.Collections.Generic.IEnumerableltTgt
,
that represents an enumerator that iterates through a messages in folder.com.aspose.ms.System.ArgumentNullException
- throws if folder is nullpublic final void dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
dispose
in interface com.aspose.ms.System.IDisposable
protected void dispose(boolean disposing)
Releases unmanaged and - optionally - managed resources.
disposing
- true
to release both managed
and unmanaged resources; false
to release only unmanaged resources.