public class NotesStorageFacility extends Object implements IDisposable, Closeable
The Notes Storage Facility (NSF) database file is used by (IBM) Lotus Notes and Domino to store different kind of objects like e-mail, appointments and documents, but also application forms and views.
Constructor and Description |
---|
NotesStorageFacility(InputStream stream)
Initializes a new instance of the
NotesStorageFacility class. |
NotesStorageFacility(InputStream stream,
NsfLoadOptions options)
Initializes a new instance of the
NotesStorageFacility class. |
NotesStorageFacility(String fileName)
Initializes a new instance of the
NotesStorageFacility class. |
NotesStorageFacility(String fileName,
NsfLoadOptions options)
Initializes a new instance of the
NotesStorageFacility class. |
Modifier and Type | Method and Description |
---|---|
void |
close() |
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.
|
IGenericEnumerable<MailMessage> |
enumerateMessages()
Exposes the enumerator, which supports an iteration of messages in storage.
|
public NotesStorageFacility(String fileName)
Initializes a new instance of the NotesStorageFacility
class.
fileName
- Name of the file.ArgumentNullException
- fileName - File name can not be null or emptypublic NotesStorageFacility(InputStream stream)
Initializes a new instance of the NotesStorageFacility
class.
stream
- The stream.ArgumentNullException
- stream - Source stream can not be nullpublic NotesStorageFacility(String fileName, NsfLoadOptions options)
Initializes a new instance of the NotesStorageFacility
class.
fileName
- Name of the file.options
- Additional load options.ArgumentNullException
- fileName - File name can not be null or emptypublic NotesStorageFacility(InputStream stream, NsfLoadOptions options)
Initializes a new instance of the NotesStorageFacility
class.
stream
- The stream.options
- Additional load options.ArgumentNullException
- stream - Source stream can not be nullpublic final IGenericEnumerable<MailMessage> enumerateMessages()
Exposes the enumerator, which supports an iteration of messages in storage.
System.Collections.Generic.IEnumerableltTgt
,
that represents an enumerator that iterates through a messages in storage.public final void dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
dispose
in interface IDisposable
public void close()
close
in interface Closeable
close
in interface AutoCloseable
protected final 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.