Interface IArtifactSerializer<T>

Namespace
NOpenNLP.Tools.Util.Model
Assembly
NOpenNLP.Tools.dll

Responsible to create an artifact from an Stream.

public interface IArtifactSerializer<T> : IArtifactSerializer

Type Parameters

T
Inherited Members

Methods

Create(Stream)

Creates the artifact from the provided Stream.

The Stream remains open.

T Create(Stream @in)

Parameters

in Stream

Returns

T

the artifact

Serialize(T, Stream)

Serializes the artifact to the provided Stream.

The Stream remains open.

void Serialize(T artifact, Stream @out)

Parameters

artifact T
out Stream