C# Class Simpl.Serialization.Serializers.FormatSerializer

FormatSerializer. an abstract base class from where format-specific serializers derive. Its main use is for exposing the API for serialization methods. It contains helper functions and wrapper serialization functions, allowing software developers to use different types of objects for serialization, such as System.out, File, StringBuilder, or return serialized data as StringBuilder
Show file Open project: ecologylab/simplCSharp

Public Methods

Method Description
GetBinarySerializer ( BinaryFormat format ) : FormatSerializer

GetSerializer ( Format format ) : FormatSerializer

GetStringSerializer ( StringFormat format ) : StringSerializer

Serialize ( Object obj, Stream stream, TranslationContext translationContext ) : void

Protected Methods

Method Description
AlreadySerialized ( Object obj, TranslationContext translationContext ) : System.Boolean
GetClassDescriptor ( Object obj ) : ClassDescriptor

SerializationPostHook ( Object obj, TranslationContext translationContext ) : void

SerializationPreHook ( Object obj, TranslationContext translationContext ) : void

Method Details

AlreadySerialized() protected method

protected AlreadySerialized ( Object obj, TranslationContext translationContext ) : System.Boolean
obj Object
translationContext Simpl.Serialization.Context.TranslationContext
return System.Boolean

GetBinarySerializer() public static method

public static GetBinarySerializer ( BinaryFormat format ) : FormatSerializer
format BinaryFormat
return FormatSerializer

GetClassDescriptor() protected method

protected GetClassDescriptor ( Object obj ) : ClassDescriptor
obj Object
return ClassDescriptor

GetSerializer() public static method

public static GetSerializer ( Format format ) : FormatSerializer
format Format
return FormatSerializer

GetStringSerializer() public static method

public static GetStringSerializer ( StringFormat format ) : StringSerializer
format StringFormat
return Simpl.Serialization.Serializers.StringFormats.StringSerializer

SerializationPostHook() protected method

protected SerializationPostHook ( Object obj, TranslationContext translationContext ) : void
obj Object
translationContext Simpl.Serialization.Context.TranslationContext
return void

SerializationPreHook() protected method

protected SerializationPreHook ( Object obj, TranslationContext translationContext ) : void
obj Object
translationContext Simpl.Serialization.Context.TranslationContext
return void

Serialize() public abstract method

public abstract Serialize ( Object obj, Stream stream, TranslationContext translationContext ) : void
obj Object
stream Stream
translationContext Simpl.Serialization.Context.TranslationContext
return void