Class GenericModelWriter

Namespace
NOpenNLP.Tools.Ml.Model
Assembly
NOpenNLP.Tools.dll
public class GenericModelWriter : AbstractModelWriter, IDisposable
Inheritance
GenericModelWriter
Implements
Inherited Members

Constructors

GenericModelWriter(AbstractModel, FileInfo)

public GenericModelWriter(AbstractModel model, FileInfo file)

Parameters

model AbstractModel
file FileInfo

GenericModelWriter(AbstractModel, Stream)

public GenericModelWriter(AbstractModel model, Stream dos)

Parameters

model AbstractModel
dos Stream

Methods

CloseCore()

Performs the actual close. Called at most once.

protected override void CloseCore()

Exceptions

IOException

if there is an error during writing

Persist()

public override void Persist()

Exceptions

IOException

if there is an error during writing

WriteDouble(double)

public override void WriteDouble(double d)

Parameters

d double

Exceptions

IOException

if there is an error during writing

WriteInt32(int)

public override void WriteInt32(int i)

Parameters

i int

Exceptions

IOException

if there is an error during writing

WriteUTF(string)

public override void WriteUTF(string s)

Parameters

s string

Exceptions

IOException

if there is an error during writing