C# Class Pdoxcl2Sharp.ParadoxCompressedSaver

Inheritance: ParadoxStreamWriter
显示文件 Open project: nickbabcock/Pdoxcl2Sharp

Public Methods

Method Description
ParadoxCompressedSaver ( Stream data ) : System
Write ( string header, Action objWriter ) : void
Write ( string value, ValueWrite type ) : void
Write ( string key, string value, ValueWrite valuetype ) : void
WriteComment ( string comment ) : void
WriteLine ( string key, System.DateTime date ) : void
WriteLine ( string value, ValueWrite valuetype ) : void
WriteLine ( string key, string value, ValueWrite valuetype ) : void

Private Methods

Method Description
NoNewLineIfQuoted ( ValueWrite val ) : ValueWrite

If a value being written is quoted, then there is no need to insert a newline because quotes are used as delimiters

Normalize ( ValueWrite val ) : ValueWrite
StripLeadingTabs ( ValueWrite val ) : ValueWrite

Method Details

ParadoxCompressedSaver() public method

public ParadoxCompressedSaver ( Stream data ) : System
data Stream
return System

Write() public method

public Write ( string header, Action objWriter ) : void
header string
objWriter Action
return void

Write() public method

public Write ( string value, ValueWrite type ) : void
value string
type ValueWrite
return void

Write() public method

public Write ( string key, string value, ValueWrite valuetype ) : void
key string
value string
valuetype ValueWrite
return void

WriteComment() public method

public WriteComment ( string comment ) : void
comment string
return void

WriteLine() public method

public WriteLine ( string key, System.DateTime date ) : void
key string
date System.DateTime
return void

WriteLine() public method

public WriteLine ( string value, ValueWrite valuetype ) : void
value string
valuetype ValueWrite
return void

WriteLine() public method

public WriteLine ( string key, string value, ValueWrite valuetype ) : void
key string
value string
valuetype ValueWrite
return void