MailBee.NET Objects 7.2

BayesFilter.LoadDatabase Method (Stream, Stream)

Loads Bayesian database from a stream.

public void LoadDatabase(
   Stream spamStream,
   Stream nonSpamStream
);

Parameters

spamStream
An input stream containing spam samples.
nonSpamStream
An input stream containing non-spam samples.

Remarks

The data format in the stream is the same that is used for files (and the method behaves identically to LoadDatabase with the only difference that streams are used instead of files).

Exceptions

Exception Type Condition
MailBeeInvalidArgumentException spamStream or nonSpamStream is a null reference (Nothing in Visual Basic).
MailBeeIOException An I/O error occurred.

See Also

BayesFilter Class | MailBee.AntiSpam Namespace | BayesFilter.LoadDatabase Overload List | LoadDatabase