C# Class Fanx.Serial.ObjEncoder

ObjEncoder serializes an object to an output stream.
Show file Open project: xored/f4 Class Usage Examples

Public Methods

Method 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

Method 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 method

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

encode() public static method

public static encode ( object obj ) : string
obj object
return string

w() public method

public w ( char ch ) : ObjEncoder
ch char
return ObjEncoder

w() public method

public w ( string s ) : ObjEncoder
s string
return ObjEncoder

wIndent() public method

public wIndent ( ) : ObjEncoder
return ObjEncoder

wStrLiteral() public method

public wStrLiteral ( string s, char quote ) : ObjEncoder
s string
quote char
return ObjEncoder

wType() public method

public wType ( Type t ) : ObjEncoder
t Fan.Sys.Type
return ObjEncoder

writeList() public method

public writeList ( List list ) : void
list Fan.Sys.List
return void

writeMap() public method

public writeMap ( Map map ) : void
map Fan.Sys.Map
return void

writeObj() public method

public writeObj ( object obj ) : void
obj object
return void