C# Class NSoft.NFramework.Nini.Ini.IniReader

Inheritance: IDisposable
显示文件 Open project: debop/NFramework Class Usage Examples

Public Methods

Method Description
Close ( ) : void
Dispose ( ) : void
GetAssignDelimiters ( ) : char[]
GetCommentDelimiters ( ) : char[]
IniReader ( Stream stream ) : System
IniReader ( TextReader reader ) : System
IniReader ( string filePath ) : System
MoveToNextKey ( ) : bool
MoveToNextSection ( ) : bool
Read ( ) : bool
SetAssignDelimiters ( char delimiters ) : void
SetCommentDelimiters ( char delimiters ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
ConsumeToEnd ( ) : void

Consumes all data until the end of a line.

EndOfLine ( int ch ) : bool

Returns true if an end of line is found. End of line includes both an end of line or end of file.

HasCharacter ( char characters, int ch ) : bool

Returns true if the character is found in the given array.

IsAssign ( int ch ) : bool

Returns true if character is an assign character.

IsComment ( int ch ) : bool

Returns true if a comment character is found.

IsWhitespace ( int ch ) : bool

Returns true if a value is whitespace.

PeekChar ( ) : int

Returns the next upcoming character from the stream.

ReadChar ( ) : int

Returns and consumes the next character from the stream.

ReadComment ( ) : void

Reads a comment. Must start after the comment delimiter.

ReadKey ( ) : void

Reads a key.

ReadKeyValue ( ) : void

Reads the value of a key.

ReadNext ( ) : bool

Reads the next INI line item.

ReadSection ( ) : void

Reads an INI section.

RemoveTrailingWhitespace ( StringBuilder builder ) : void

Removes trailing whitespace from a StringBuilder.

Reset ( ) : void

Resets all of the current INI line data.

SearchForComment ( ) : void

Looks for a comment.

SkipWhitespace ( ) : void

Skips all whitespace.

Method Details

Close() public method

public Close ( ) : void
return void

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

GetAssignDelimiters() public method

public GetAssignDelimiters ( ) : char[]
return char[]

GetCommentDelimiters() public method

public GetCommentDelimiters ( ) : char[]
return char[]

IniReader() public method

public IniReader ( Stream stream ) : System
stream Stream
return System

IniReader() public method

public IniReader ( TextReader reader ) : System
reader TextReader
return System

IniReader() public method

public IniReader ( string filePath ) : System
filePath string
return System

MoveToNextKey() public method

public MoveToNextKey ( ) : bool
return bool

MoveToNextSection() public method

public MoveToNextSection ( ) : bool
return bool

Read() public method

public Read ( ) : bool
return bool

SetAssignDelimiters() public method

public SetAssignDelimiters ( char delimiters ) : void
delimiters char
return void

SetCommentDelimiters() public method

public SetCommentDelimiters ( char delimiters ) : void
delimiters char
return void