Table of Contents

Class GeoSerializationFormatter

Namespace
ThinkGeo.Core
Assembly
ThinkGeo.Core.dll

This class formats a GeoObjectModel into serialized data.

public abstract class GeoSerializationFormatter
Inheritance
GeoSerializationFormatter
Inherited Members

Constructors

GeoSerializationFormatter()

Creates an instance of GeoSerializationFormatter.

protected GeoSerializationFormatter()

Properties

Encoding

set or get the readEncoding.

public Encoding Encoding { get; set; }

Property Value

Encoding

Methods

Load(Stream)

Load a stream into a GeoObjectModel.

public GeoObjectModel Load(Stream stream)

Parameters

stream Stream

The Stream to load from.

Returns

GeoObjectModel

The GeoObjectModel recreated from the stream.

LoadCore(Stream)

Load a stream into a GeoObjectModel.

protected abstract GeoObjectModel LoadCore(Stream stream)

Parameters

stream Stream

The Stream to load from.

Returns

GeoObjectModel

The GeoObjectModel recreated from the stream.

Save(GeoObjectModel, Stream)

Save serialized data into a stream.

public void Save(GeoObjectModel model, Stream stream)

Parameters

model GeoObjectModel

The GeoObjectModel to create serialized data for.

stream Stream

The Stream to save serialized data into.

SaveCore(GeoObjectModel, Stream)

Format a GeoObjectModel into serialized data, and save the data into a stream.

protected abstract void SaveCore(GeoObjectModel model, Stream stream)

Parameters

model GeoObjectModel

The GeoObjectModel to create serialized data for.

stream Stream

The Stream to save serialized data into.