Class ByteArraySerializer

Namespace
NOpenNLP.Tools.Util.Model
Assembly
NOpenNLP.Tools.dll
public class ByteArraySerializer : IArtifactSerializer<byte[]>, IArtifactSerializer
Inheritance
ByteArraySerializer
Implements
Inherited Members

Methods

Create(Stream)

Creates the artifact from the provided Stream.

The Stream remains open.

public virtual byte[] Create(Stream @in)

Parameters

in Stream

Returns

byte[]

the artifact

Serialize(byte[], Stream)

Serializes the artifact to the provided Stream.

The Stream remains open.

public virtual void Serialize(byte[] artifact, Stream @out)

Parameters

artifact byte[]
out Stream