C# Class Fanx.Serial.ObjEncoder

ObjEncoder serializes an object to an output stream.
Afficher le fichier Open project: xored/f4 Class Usage Examples

Méthodes publiques

Méthode Description
ObjEncoder ( OutStream @out, Map options ) : System.Collections
encode ( object obj ) : string
w ( char ch ) : ObjEncoder
w ( string s ) : ObjEncoder
wIndent ( ) : ObjEncoder
wStrLiteral ( string s, char quote ) : ObjEncoder
wType ( Type t ) : ObjEncoder
writeList ( List list ) : void
writeMap ( Map map ) : void
writeObj ( object obj ) : void

Private Methods

Méthode Description
initOptions ( Map options ) : void
isMultiLine ( Type t ) : bool
option ( Map options, string name, bool def ) : bool
option ( Map options, string name, int def ) : int
writeCollectionItems ( Type type, object obj, bool first ) : bool
writeComplex ( Type type, object obj, Serializable ser ) : void
writeSimple ( Type type, object obj ) : void

Method Details

ObjEncoder() public méthode

public ObjEncoder ( OutStream @out, Map options ) : System.Collections
@out Fan.Sys.OutStream
options Fan.Sys.Map
Résultat System.Collections

encode() public static méthode

public static encode ( object obj ) : string
obj object
Résultat string

w() public méthode

public w ( char ch ) : ObjEncoder
ch char
Résultat ObjEncoder

w() public méthode

public w ( string s ) : ObjEncoder
s string
Résultat ObjEncoder

wIndent() public méthode

public wIndent ( ) : ObjEncoder
Résultat ObjEncoder

wStrLiteral() public méthode

public wStrLiteral ( string s, char quote ) : ObjEncoder
s string
quote char
Résultat ObjEncoder

wType() public méthode

public wType ( Type t ) : ObjEncoder
t Fan.Sys.Type
Résultat ObjEncoder

writeList() public méthode

public writeList ( List list ) : void
list Fan.Sys.List
Résultat void

writeMap() public méthode

public writeMap ( Map map ) : void
map Fan.Sys.Map
Résultat void

writeObj() public méthode

public writeObj ( object obj ) : void
obj object
Résultat void