Class AbstractModelWriter

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

Constructors

AbstractModelWriter()

protected AbstractModelWriter()

Methods

Close()

Closes the underlying stream. Closing an already-closed writer does nothing.

public void Close()

Exceptions

IOException

if there is an error during writing

CloseCore()

Performs the actual close. Called at most once.

protected abstract void CloseCore()

Exceptions

IOException

if there is an error during writing

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

Dispose(bool)

protected virtual void Dispose(bool disposing)

Parameters

disposing bool

Persist()

public abstract void Persist()

Exceptions

IOException

if there is an error during writing

WriteDouble(double)

public abstract void WriteDouble(double d)

Parameters

d double

Exceptions

IOException

if there is an error during writing

WriteInt32(int)

public abstract void WriteInt32(int i)

Parameters

i int

Exceptions

IOException

if there is an error during writing

WriteUTF(string)

public abstract void WriteUTF(string s)

Parameters

s string

Exceptions

IOException

if there is an error during writing