C# 클래스 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
파일 보기 프로젝트 열기: ecologylab/simplCSharp

공개 메소드들

메소드 설명
GetBinarySerializer ( BinaryFormat format ) : FormatSerializer

GetSerializer ( Format format ) : FormatSerializer

GetStringSerializer ( StringFormat format ) : StringSerializer

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

보호된 메소드들

메소드 설명
AlreadySerialized ( Object obj, TranslationContext translationContext ) : System.Boolean
GetClassDescriptor ( Object obj ) : ClassDescriptor

SerializationPostHook ( Object obj, TranslationContext translationContext ) : void

SerializationPreHook ( Object obj, TranslationContext translationContext ) : void

메소드 상세

AlreadySerialized() 보호된 메소드

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

GetBinarySerializer() 공개 정적인 메소드

public static GetBinarySerializer ( BinaryFormat format ) : FormatSerializer
format BinaryFormat
리턴 FormatSerializer

GetClassDescriptor() 보호된 메소드

protected GetClassDescriptor ( Object obj ) : ClassDescriptor
obj Object
리턴 ClassDescriptor

GetSerializer() 공개 정적인 메소드

public static GetSerializer ( Format format ) : FormatSerializer
format Format
리턴 FormatSerializer

GetStringSerializer() 공개 정적인 메소드

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

SerializationPostHook() 보호된 메소드

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

SerializationPreHook() 보호된 메소드

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

Serialize() 공개 추상적인 메소드

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