Class GeoSerializationFormatter
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
Methods
Load(Stream)
Load a stream into a GeoObjectModel.
public GeoObjectModel Load(Stream stream)
Parameters
stream
StreamThe 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
StreamThe 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
GeoObjectModelThe GeoObjectModel to create serialized data for.
stream
StreamThe 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
GeoObjectModelThe GeoObjectModel to create serialized data for.
stream
StreamThe Stream to save serialized data into.